SubDVertexList

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

Properties

Count

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

First

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

Methods

Add

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

Find

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

Find

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

GetEnumerator

#Since v8.36
public IEnumerator<SubDVertex> GetEnumerator()
Implementation of IEnumerable, so a vertex list can be used with foreach and LINQ the same way SubDEdgeList and SubDFaceList can.
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
public void SetVertexTags(IEnumerable<int> vertexIndices, SubDVertexTag tag)
Set vertex tags for a list of vertices. Useful for adding creases to SubDs
vertexIndices (IEnumerable<int>)list of indices for the vertices to set tags on
tag (SubDVertexTag)The type of vertex tag

SetVertexTags

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

IEnumerable.GetEnumerator

#Since v8.36
IEnumerator IEnumerable.GetEnumerator()