HalfEdgeMesh

References
public class HalfEdgeMesh
This 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 (empty) instance of the HalfEdgeMesh class.
public HalfEdgeMesh()

HalfEdgeMesh

#
Initializes a new (duplicate) instance of the HalfEdgeMesh class.
public HalfEdgeMesh(
HalfEdgeMesh
source
)

Properties

Faces

#
Gets access to the HalfEdgeFaceList collection in this mesh.
public HalfEdgeFaceList Faces { get; }

Halfedges

#
Gets access to the HalfEdgeList collection in this mesh.
public HalfEdgeList Halfedges { get; }

Vertices

#
Gets access to the HalfEdgeVertexList collection in this mesh.
public HalfEdgeVertexList Vertices { get; }

Methods

Compact

#
Removes any unreferenced objects from arrays, reindexes as needed and shrinks arrays to minimum required size.
public void Compact()
InvalidOperationExceptionThrown if halfedge count is odd after compaction. Most likely caused by only marking one of the halfedges in a pair for deletion.

Dual

#
public HalfEdgeMesh Dual()

IsClosed

#
public bool IsClosed()

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.
)
A new mesh, the result of the truncation.

Volume

#
Calculate the volume of the mesh
public double Volume()