Class MeshVertex
Represents a vertex of a mesh.
public class MeshVertex : Point3, IEquatable<Point3>, IComparable<Point3>, IComparable
Initializes a new instance of the MeshVertex class.
public MeshVertex()
Initializes a new instance of the MeshVertex class from a 3D point.
public MeshVertex(Point3 pt)
Type | Name | Description |
---|---|---|
Point3 | pt | Point to copy coordinates from. |
Initializes a new instance of the MeshVertex class from it's cartesian coordinates.
public MeshVertex(double x, double y, double z)
Type | Name | Description |
---|---|---|
System.Double | x | X Coordinate. |
System.Double | y | Y Coordinate. |
System.Double | z | Z Coordinate. |
Gets or sets the half-edge this vertex is attached to.
public MeshHalfEdge HalfEdge { get; set; }
Type | Description |
---|---|
MeshHalfEdge |
Gets or sets the index of the vertex.
public int Index { get; set; }
Type | Description |
---|---|
System.Int32 |
Returns a list with all the adjacent MeshCorner of this vertex.
public IEnumerable<MeshCorner> AdjacentCorners()
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MeshCorner> |
Returns a list with all the adjacent HE_Edge of this vertex.
public IEnumerable<MeshEdge> AdjacentEdges()
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MeshEdge> |
Returns a list with all adjacent HE_Face of a vertex.
public IEnumerable<MeshFace> AdjacentFaces()
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MeshFace> |
Returns a list with all adjacent HE_HalfEdge of this vertex.
public IEnumerable<MeshHalfEdge> AdjacentHalfEdges()
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MeshHalfEdge> |
Returns a list with all the adjacent HE_Vertex of this vertex.
public IEnumerable<MeshVertex> AdjacentVertices()
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MeshVertex> |
Check if vertex is isolated, meaning corresponding half-edge is null.
public bool IsIsolated()
Type | Description |
---|---|
System.Boolean |
Check if vertex is on mesh boundary.
public bool OnBoundary()
Type | Description |
---|---|
System.Boolean |
Returns the string representation of this vertex.
public override string ToString()
Type | Description |
---|---|
System.String |
Computes the valence of the vertex.
public int Valence()
Type | Description |
---|---|
System.Int32 |