SubDVertexList
ReferencesProvides access to all the vertices and vertex-related functionality of a SubD
Properties
Methods
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.
Returns: The newly added vertex.
Exceptions:
| ArgumentOutOfRangeException | If tag is unset or non-defined. |
Find a vertex in this SubD with a given id
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.
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
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