Class Face
A face of DCEL mesh.
Inheritance
System.Object
Face
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 Face
Constructors
Face(Point)
Initializes a new instance of the Face class.
Declaration
public Face(Point generator)
Parameters
Type | Name | Description |
---|---|---|
Point | generator | The generator of this face (for Voronoi diagram) |
Face(Point, HalfEdge)
Initializes a new instance of the Face class.
Declaration
public Face(Point generator, HalfEdge edge)
Parameters
Type | Name | Description |
---|---|---|
Point | generator | The generator of this face (for Voronoi diagram) |
HalfEdge | edge | The half-edge connected to this face. |
Fields
Empty
Declaration
public static readonly Face Empty
Field Value
Type | Description |
---|---|
Face |
Properties
Bounded
Gets or sets a value, indicating if the face is bounded (for Voronoi diagram).
Declaration
public bool Bounded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Edge
Gets or sets a half-edge connected to the face.
Declaration
public HalfEdge Edge { get; set; }
Property Value
Type | Description |
---|---|
HalfEdge |
ID
Gets or sets the face id.
Declaration
public int ID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
EnumerateEdges()
Enumerates all half-edges of the face boundary.
Declaration
public IEnumerable<HalfEdge> EnumerateEdges()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<HalfEdge> |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()