RhinoSupport
Provides static and extension methods to add support for Rhino geometry in HalfEdgeMesh. Derived from Plankton, (c) 2013 Daniel Piker and Will Pearson, licensed LGPL v3 or later.
Methods
Adds a new vertex to the end of the Vertex list.
public static int Add()
Returns: The index of the newly added vertex.
Adds a new vertex to the end of the Vertex list.
public static int Add()
Returns: The index of the newly added vertex.
Gets positions of vertices
Returns: A list of Point3d
Moves a vertex by a vector.
public static bool MoveVertex()
this HalfEdgeVertexList
vertexList,
The HalfEdgeVertexList to modify.
index,
Index of vertex to move.
vector
Vector to move by.
Returns:
true on success, false on failure.Replaces the vertices of a HalfEdgeMesh with a new list of points
Returns: A list of closed polylines representing the boundary edges of each face.
Sets or adds a vertex to the Vertex List.
If [index] is less than [Count], the existing vertex at [index] will be modified.
If [index] equals [Count], a new vertex is appended to the end of the vertex list.
If [index] is larger than [Count], the function will return false.
public static bool SetVertex()
this HalfEdgeVertexList
vertexList,
The HalfEdgeVertexList to modify.
index,
Index of vertex to set.
vertex
Vertex location.
Returns:
true on success, false on failure.Sets or adds a vertex to the Vertex List.
If [index] is less than [Count], the existing vertex at [index] will be modified.
If [index] equals [Count], a new vertex is appended to the end of the vertex list.
If [index] is larger than [Count], the function will return false.
public static bool SetVertex()
this HalfEdgeVertexList
vertexList,
The HalfEdgeVertexList to modify.
index,
Index of vertex to set.
vertex
Vertex location.
Returns:
true on success, false on failure.Creates a half-edge mesh from a Rhino mesh. Uses the topology of the Rhino mesh directly.
Returns: A HalfEdgeMesh which represents the topology and geometry of the source mesh.
Creates a Rhino Point3d from a half-edge mesh vertex.
Returns: A Point3d with the same coordinates as the vertex.
Converts each face to a closed polyline.
Returns: A list of closed polylines representing the boundary edges of each face.
Creates a Rhino mesh from a half-edge mesh. Uses the face-vertex information available in the halfedge data structure.
Remarks: Any faces with five sides or more will be triangulated.
Returns: A Mesh which represents the source mesh (as best it can).