HalfEdgeMesh
ReferencesThis is the main class that describes a half-edge mesh. Derived from Plankton, (c) 2013 Daniel Piker and Will Pearson, licensed LGPL v3 or later.
Constructors
HalfEdgeMesh
#Initializes a new (duplicate) instance of the HalfEdgeMesh class.
public HalfEdgeMesh()
HalfEdgeMesh
source
Properties
Methods
Compact
#Removes any unreferenced objects from arrays, reindexes as needed and shrinks arrays to minimum required size.
public void Compact()
Exceptions:
| InvalidOperationException | Thrown if halfedge count is odd after compaction. Most likely caused by only marking one of the halfedges in a pair for deletion. |
Dual
#TruncateVertices
#Truncates the vertices of a mesh.
public HalfEdgeMesh TruncateVertices()
t = 0.3333333333333333
Optional parameter for the normalised distance along each edge to control the amount of truncation.
Returns: A new mesh, the result of the truncation.