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
Gets or sets the number of mesh topology vertices.
public int Count { get; }
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[
index
]

this[]

#
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.
public Point3f this[
index
Index of topology vertex to access.
] { get; set; }
The topological vertex at [index].

Methods

ConnectedEdge

#Since v6.0
Gets a particular edge that is connected to a topological vertex.

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

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

ConnectedEdges

#Since v6.0
Gets all edges that are connected to a given vertex.

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

public int[] ConnectedEdges(
topologyVertexIndex
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
Gets the count of edges that are connected to a given vertex.
public int ConnectedEdgesCount(
topologyVertexIndex
Index of a topology vertex in Mesh.TopologyVertices.
)
The amount of edges at this vertex. This can be 0.

ConnectedFaces

#Since v5.0
Gets all faces that are connected to a given vertex.
public int[] ConnectedFaces(
topologyVertexIndex
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
Gets all topological vertices that are connected to a given vertex.
public int[] ConnectedTopologyVertices(
topologyVertexIndex,
index of a topology vertex in Mesh.TopologyVertices.
sorted
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
Gets all topological vertices that are connected to a given vertex.
public int[] ConnectedTopologyVertices(
topologyVertexIndex
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
Gets an enumerator that yields all topology vertices in this collection.
public IEnumerator<Point3f> GetEnumerator()
The enumerator.

IndicesFromFace

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

IsHidden

#Since v5.0
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.
public bool IsHidden(
topologyVertexIndex
index of a topology vertex in Mesh.TopologyVertices.
)
true if mesh topology vertex is hidden.

MeshVertexIndices

#Since v5.0
Gets all indices of the mesh vertices that a given topology vertex represents.
public int[] MeshVertexIndices(
topologyVertexIndex
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
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.
public bool SortEdges()
true on success.

SortEdges

#Since v5.0
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.
public bool SortEdges(
topologyVertexIndex
index of a topology vertex in Mesh.TopologyVertices>
)
true on success.
Explicit

ICollection<Point3f>.Add

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

ICollection<Point3f>.Clear

#
void ICollection<Point3f>.Clear()
Explicit

ICollection<Point3f>.Contains

#
Explicit

ICollection<Point3f>.CopyTo

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

ICollection<Point3f>.Remove

#
Explicit

IList<Point3f>.IndexOf

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

IList<Point3f>.Insert

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

IList<Point3f>.RemoveAt

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

ICollection.CopyTo

#
void ICollection.CopyTo(
array,
index
)
Explicit

IEnumerable.GetEnumerator

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

IList.Add

#
int IList.Add(
value
)
Explicit

IList.Clear

#
void IList.Clear()
Explicit

IList.Contains

#
bool IList.Contains(
value
)
Explicit

IList.IndexOf

#
int IList.IndexOf(
value
)
Explicit

IList.Insert

#
void IList.Insert(
index,
value
)
Explicit

IList.Remove

#
void IList.Remove(
value
)
Explicit

IList.RemoveAt

#
void IList.RemoveAt(
index
)

TopologyVertexIndex

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