/// <summary> /// Constructor for creating a new HalfEdge. /// </summary> /// <param name="handle">The reference of the HalfEdge.</param> public HalfEdge(int handle) { Handle = handle; OriginVertex = 0; TwinHalfEdge = 0; NextHalfEdge = 0; PrevHalfEdge = 0; IncidentFace = 0; HalfEdgeData = new HalfEdgeData(); }
/// <summary> /// Constructor for creating a new HalfEdge from another one. /// </summary> /// <param name="handle">The reference of the half edge.</param> /// <param name="halfEdge">The original HalfEdge.</param> public HalfEdge(int handle, HalfEdge halfEdge) { Handle = handle; OriginVertex = halfEdge.OriginVertex; TwinHalfEdge = halfEdge.TwinHalfEdge; NextHalfEdge = halfEdge.NextHalfEdge; PrevHalfEdge = halfEdge.PrevHalfEdge; IncidentFace = halfEdge.IncidentFace; HalfEdgeData = halfEdge.HalfEdgeData; }
/// <summary> /// Constructor for creating a new HalfEdge. /// </summary> public HalfEdge(int handle = 0, int originVertex = 0, int twinHalfEdge = 0, int nextHalfEdge = 0, int prevHalfEdge = 0, int incidentFace = 0) { Handle = handle; OriginVertex = originVertex; TwinHalfEdge = twinHalfEdge; NextHalfEdge = nextHalfEdge; PrevHalfEdge = prevHalfEdge; IncidentFace = incidentFace; HalfEdgeData = new HalfEdgeData(); }