MeshTopologyVertexList

References
Provides access to the mesh topology vertices of a mesh. Topology vertices are sets of vertices in the MeshVertexList that can topologically be considered the same vertex.

Properties

Count

#Since v5.0
public int Count { get; }
Gets or sets the number of mesh topology vertices.
Explicit

ICollection<Point3f>.IsReadOnly

#
Explicit

ICollection.IsSynchronized

#
bool ICollection.IsSynchronized
Explicit

ICollection.SyncRoot

#
Explicit

IList.IsFixedSize

#
bool IList.IsFixedSize
Explicit

IList.IsReadOnly

#
bool IList.IsReadOnly

Indexers

Explicit

IList.this[]

#
object IList.this[int index]
index (int)

this[]

#
public Point3f this[int index] { get; set; }
Gets or sets the vertex at the given index. Setting a location adjusts all vertices in the mesh's vertex list that are defined by this topological vertex The index must be valid or an IndexOutOfRangeException will be thrown.
index (int)Index of topology vertex to access.
The topological vertex at [index].

Methods

ConnectedEdge

#Since v6.0
public int ConnectedEdge(int topologyVertexIndex, int edgeAtVertexIndex)
Gets a particular edge that is connected to a topological vertex.

Call TopologyVertices.SortVertices before this if you are interested in ordered edges.

topologyVertexIndex (int)Index of a topology vertex in Mesh.TopologyVertices.
edgeAtVertexIndex (int)Index of the edge at the vertex.
The index of the connected edge.

ConnectedEdges

#Since v6.0
public int[] ConnectedEdges(int topologyVertexIndex)
Gets all edges that are connected to a given vertex.

Call TopologyVertices.SortVertices before this if you are interested in ordered edges.

topologyVertexIndex (int)Index of a topology vertex in Mesh.TopologyVertices.
Indices of all edges around vertex that are connected to this topological vertex. null if no faces are connected to this vertex.

ConnectedEdgesCount

#Since v6.0
public int ConnectedEdgesCount(int topologyVertexIndex)
Gets the count of edges that are connected to a given vertex.
topologyVertexIndex (int)Index of a topology vertex in Mesh.TopologyVertices.
The amount of edges at this vertex. This can be 0.

ConnectedFaces

#Since v5.0
public int[] ConnectedFaces(int topologyVertexIndex)
Gets all faces that are connected to a given vertex.
topologyVertexIndex (int)Index of a topology vertex in Mesh.TopologyVertices.
Indices of all faces in Mesh.Faces that are connected to this topological vertex. null if no faces are connected to this vertex.

ConnectedTopologyVertices

#Since v5.0
public int[] ConnectedTopologyVertices(int topologyVertexIndex, bool sorted)
Gets all topological vertices that are connected to a given vertex.
topologyVertexIndex (int)index of a topology vertex in Mesh.TopologyVertices.
sorted (bool)if true, the vertices are returned in a radially sorted order.
Indices of all topological vertices that are connected to this topological vertex. null if no vertices are connected to this vertex.

ConnectedTopologyVertices

#Since v5.0
public int[] ConnectedTopologyVertices(int topologyVertexIndex)
Gets all topological vertices that are connected to a given vertex.
topologyVertexIndex (int)index of a topology vertex in Mesh.TopologyVertices.
Indices of all topological vertices that are connected to this topological vertex. null if no vertices are connected to this vertex.

GetEnumerator

#Since v5.0
public IEnumerator<Point3f> GetEnumerator()
Gets an enumerator that yields all topology vertices in this collection.
The enumerator.

IndicesFromFace

#Since v5.0
public int[] IndicesFromFace(int faceIndex)
Returns TopologyVertexIndices for a given mesh face index.
faceIndex (int)The index of a face to query.
An array of vertex indices.

IsHidden

#Since v5.0
public bool IsHidden(int topologyVertexIndex)
Returns true if the topological vertex is hidden. The mesh topology vertex is hidden if and only if all the ON_Mesh vertices it represents is hidden.
topologyVertexIndex (int)index of a topology vertex in Mesh.TopologyVertices.
true if mesh topology vertex is hidden.

MeshVertexIndices

#Since v5.0
public int[] MeshVertexIndices(int topologyVertexIndex)
Gets all indices of the mesh vertices that a given topology vertex represents.
topologyVertexIndex (int)Index of a topology vertex in Mesh.TopologyVertices to query.
Indices of all vertices that in Mesh.Vertices that a topology vertex represents.

SortEdges

#Since v5.0
public bool SortEdges()
Sorts the edge list for the mesh topology vertex list so that the edges are in radial order when you call ConnectedTopologyVertices. A non-manifold edge is treated as a boundary edge with respect to sorting. If any boundary or non-manifold edges end at the vertex, then the first edge will be a boundary or non-manifold edge.
true on success.

SortEdges

#Since v5.0
public bool SortEdges(int topologyVertexIndex)
Sorts the edge list for as single mesh topology vertex so that the edges are in radial order when you call ConnectedTopologyVertices. A non-manifold edge is treated as a boundary edge with respect to sorting. If any boundary or non-manifold edges end at the vertex, then the first edge will be a boundary or non-manifold edge.
topologyVertexIndex (int)index of a topology vertex in Mesh.TopologyVertices>
true on success.
Explicit

ICollection<Point3f>.Add

#
void ICollection<Point3f>.Add(Point3f item)
item (Point3f)
Explicit

ICollection<Point3f>.Clear

#
void ICollection<Point3f>.Clear()
Explicit

ICollection<Point3f>.Contains

#
item (Point3f)
Explicit

ICollection<Point3f>.CopyTo

#
void ICollection<Point3f>.CopyTo(Point3f[] array, int arrayIndex)
array (Point3f[])
arrayIndex (int)
Explicit

ICollection<Point3f>.Remove

#
item (Point3f)
Explicit

IList<Point3f>.IndexOf

#
int IList<Point3f>.IndexOf(Point3f item)
item (Point3f)
Explicit

IList<Point3f>.Insert

#
void IList<Point3f>.Insert(int index, Point3f item)
index (int)
item (Point3f)
Explicit

IList<Point3f>.RemoveAt

#
void IList<Point3f>.RemoveAt(int index)
index (int)
Explicit

ICollection.CopyTo

#
void ICollection.CopyTo(Array array, int index)
array (Array)
index (int)
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()
Explicit

IList.Add

#
int IList.Add(object value)
value (object)
Explicit

IList.Clear

#
void IList.Clear()
Explicit

IList.Contains

#
bool IList.Contains(object value)
value (object)
Explicit

IList.IndexOf

#
int IList.IndexOf(object value)
value (object)
Explicit

IList.Insert

#
void IList.Insert(int index, object value)
index (int)
value (object)
Explicit

IList.Remove

#
void IList.Remove(object value)
value (object)
Explicit

IList.RemoveAt

#
void IList.RemoveAt(int index)
index (int)

TopologyVertexIndex

#Since v5.0
public int TopologyVertexIndex(int vertexIndex)
Gets the topology vertex index for an existing mesh vertex in the mesh's VertexList.
vertexIndex (int)Index of a vertex in the Mesh.Vertices.
Index of a topology vertex in the Mesh.TopologyVertices.