Class HalfEdge
Inheritance
System.Object
HalfEdge
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Topology.DCEL
Syntax
public class HalfEdge
Constructors
HalfEdge(Vertex)
Initializes a new instance of the HalfEdge class.
Declaration
public HalfEdge(Vertex origin)
Parameters
Type | Name | Description |
---|---|---|
Vertex | origin | The origin of this half-edge. |
HalfEdge(Vertex, Face)
Initializes a new instance of the HalfEdge class.
Declaration
public HalfEdge(Vertex origin, Face face)
Parameters
Type | Name | Description |
---|---|---|
Vertex | origin | The origin of this half-edge. |
Face | face | The face connected to this half-edge. |
Properties
Boundary
Declaration
public int Boundary { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Face
Gets or sets the face connected to the half-edge.
Declaration
public Face Face { get; set; }
Property Value
Type | Description |
---|---|
Face |
ID
Gets or sets the half-edge id.
Declaration
public int ID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Next
Gets or sets the next pointer of the half-edge.
Declaration
public HalfEdge Next { get; set; }
Property Value
Type | Description |
---|---|
HalfEdge |
Origin
Gets or sets the origin of the half-edge.
Declaration
public Vertex Origin { get; set; }
Property Value
Type | Description |
---|---|
Vertex |
Twin
Gets or sets the twin of the half-edge.
Declaration
public HalfEdge Twin { get; set; }
Property Value
Type | Description |
---|---|
HalfEdge |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()