SubDEdgeList

References
All edges in a SubD

Properties

Count

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

Methods

Add

#Since v7.0
public SubDEdge Add(SubDEdgeTag tag, SubDVertex v0, SubDVertex v1)
Add a new edge to the list.
tag (SubDEdgeTag)The type of edge tag, such as smooth or corner.
v0 (SubDVertex)First vertex.
v1 (SubDVertex)Second vertex.
ArgumentOutOfRangeExceptionIf tag is unset or non-defined.

Find

#Since v7.0
public SubDEdge Find(int id)
Find an edge in this SubD with a given id
id (int)

Find

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

FindOrAdd

#Since v8.36
public SubDEdge FindOrAdd(SubDVertex v0, SubDVertex v1)
Gets the edge between two vertices, adding a smooth edge if there is not one yet.
v0 (SubDVertex)First vertex.
v1 (SubDVertex)Second vertex.
The existing or newly added edge, or null on failure.

GetEnumerator

#Since v7.0
public IEnumerator<SubDEdge> GetEnumerator()
Implementation of IEnumerable

SetEdgeTags

#Since v7.7
public void SetEdgeTags(IEnumerable<int> edgeIndices, SubDEdgeTag tag)
Set edge tags for a list of edges. Useful for adding creases to SubDs
edgeIndices (IEnumerable<int>)list of indices for the edges to set tags on
tag (SubDEdgeTag)The type of edge tag

SetEdgeTags

#Since v7.7
public void SetEdgeTags(IEnumerable<SubDEdge> edges, SubDEdgeTag tag)
Set edge tags for a list of edges. Useful for adding creases to SubDs
edges (IEnumerable<SubDEdge>)list of edges to set a specific tag on
tag (SubDEdgeTag)The type of edge tag
Explicit

IEnumerable.GetEnumerator

#Since v7.0
IEnumerator IEnumerable.GetEnumerator()