Class ConvexFace<TVertex, TFace>
A convex face representation containing adjacency information.
Inheritance
ConvexFace<TVertex, TFace>
Namespace: NWH.DWP2.MiConvexHull
Assembly: NWH.DWP2.dll
Syntax
public abstract class ConvexFace<TVertex, TFace> where TVertex : IVertex where TFace : ConvexFace<TVertex, TFace>
Type Parameters
| Name | Description |
|---|---|
| TVertex | The type of the t vertex. |
| TFace | The type of the t face. |
Properties
| Edit this page View SourceAdjacency
Adjacency. Array of length "dimension". If F = Adjacency[i] then the vertices shared with F are Vertices[j] where j != i. In the context of triangulation, can be null (indicates the cell is at boundary).
Declaration
public TFace[] Adjacency { get; set; }
Property Value
| Type | Description |
|---|---|
| TFace[] | The adjacency. |
Normal
The normal vector of the face. Null if used in triangulation.
Declaration
public double[] Normal { get; set; }
Property Value
| Type | Description |
|---|---|
| double[] | The normal. |
Vertices
The vertices stored in clockwise order for dimensions 2 - 4, in higher dimensions the order is arbitrary. Unless I accidentally switch some index somewhere in which case the order is CCW. Either way, it is consistent. 3D Normal = (V[1] - V[0]) x (V[2] - V[1]).
Declaration
public TVertex[] Vertices { get; set; }
Property Value
| Type | Description |
|---|---|
| TVertex[] | The vertices. |