SubDVertexList

References
Provides access to all the vertices and vertex-related functionality of a SubD

Properties

Count

#Since v7.0
Gets the number of SubD vertices.
public int Count { get; }

First

#Since v7.0
First vertex in this linked list of vertices
public SubDVertex First { get; }

Methods

Add

#Since v7.0
Add a new vertex to the end of the Vertex list.
public SubDVertex Add(
tag,
The type of vertex tag, such as smooth or corner.
vertex
Location of new vertex.
)
The newly added vertex.
ArgumentOutOfRangeExceptionIf tag is unset or non-defined.

Find

#Since v7.0
Find a vertex in this SubD with a given id
public SubDVertex Find(
id
)

Find

#Since v7.0
Find a vertex in this SubD with a given id
[CLSCompliant(false)] public SubDVertex Find(
id
)

GetEnumerator

#Since v8.36
Implementation of IEnumerable, so a vertex list can be used with foreach and LINQ the same way SubDEdgeList and SubDFaceList can.
public IEnumerator<SubDVertex> GetEnumerator()
Remarks: Note that this list has both a First property and, now that it is enumerable, a LINQ First() extension method. They disagree on an empty SubD: the property returns null and First() throws.

SetVertexTags

#Since v8.30
Set vertex tags for a list of vertices. Useful for adding creases to SubDs
public void SetVertexTags(
vertexIndices,
list of indices for the vertices to set tags on
tag
The type of vertex tag
)

SetVertexTags

#Since v8.30
Set vertex tags for a list of vertices. Useful for adding creases to SubDs
public void SetVertexTags(
vertices,
list of vertices to set a specific tag on
tag
The type of vertex tag
)
Explicit

IEnumerable.GetEnumerator

#Since v8.36
IEnumerator IEnumerable.GetEnumerator()