Class MeshFace
Half-edge mesh face class.
Inheritance
Namespace: Paramdigma.Core.Geometry
Assembly: Paramdigma.Core.dll
Syntax
public class MeshFace : object
Constructors
| Improve this Doc View SourceMeshFace()
Initializes a new instance of the MeshFace class.
Declaration
public MeshFace()
Properties
| Improve this Doc View SourceArea
Gets the area of the face.
Declaration
public double Area { get; }
Property Value
Type | Description |
---|---|
System.Double | Returns the value of the face area. |
HalfEdge
Gets or sets one of the half-edges surrounding the face.
Declaration
public MeshHalfEdge HalfEdge { get; set; }
Property Value
Type | Description |
---|---|
MeshHalfEdge |
Index
Gets or sets the face index on the mesh face list.
Declaration
public int Index { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Normal
Gets the normal vector of the face.
Declaration
public Vector3d Normal { get; }
Property Value
Type | Description |
---|---|
Vector3d | Returns the perpendicular vector to the face. |
Methods
| Improve this Doc View SourceAdjacentCorners()
Get all adjacent corners to this face.
Declaration
public List<MeshCorner> AdjacentCorners()
Returns
Type | Description |
---|---|
List<MeshCorner> | Returns a list of all adjacent corners in order. |
AdjacentEdges()
Get all adjacent edges to this face.
Declaration
public List<MeshEdge> AdjacentEdges()
Returns
Type | Description |
---|---|
List<MeshEdge> | Returns a list of all adjacent edges in order. |
AdjacentFaces()
Get all adjacent faces to this face.
Declaration
public List<MeshFace> AdjacentFaces()
Returns
Type | Description |
---|---|
List<MeshFace> | Returns a list of all adjacent faces in order. |
AdjacentHalfEdges()
Get all adjacent half-edges to this face.
Declaration
public List<MeshHalfEdge> AdjacentHalfEdges()
Returns
Type | Description |
---|---|
List<MeshHalfEdge> | Returns a list of all adjacent half-edges in order. |
AdjacentVertices()
Get all adjacent vertices to this face.
Declaration
public List<MeshVertex> AdjacentVertices()
Returns
Type | Description |
---|---|
List<MeshVertex> | Returns a list of all adjacent vertices in order. |
IsBoundaryLoop()
Checks if the current face is a boundary face.
Declaration
public bool IsBoundaryLoop()
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the face is a boundary face, false if not. |
ToString()
Convert the mesh face to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Returns the string representation of the mesh face. |