MeshTopologyEdgeList

References
Represents an entry point to the list of edges in a mesh topology.

Properties

Count

#Since v5.0
Gets the amount of edges in this list.
public int Count { get; }

Methods

CollapseEdge

#Since v5.0
Replaces a mesh edge with a vertex at its center and update adjacent faces as needed.
public bool CollapseEdge(
topologyEdgeIndex
An index of a topology edge in Mesh.TopologyEdges.
)
true if successful.

EdgeLine

#Since v5.0
Gets the 3d line along an edge.
public Line EdgeLine(
topologyEdgeIndex
The topology edge index.
)
Line along edge. If input is not valid, an Invalid Line is returned.

GetConnectedFaces

#Since v5.0
Gets indices of faces connected to an edge.
public int[] GetConnectedFaces(
topologyEdgeIndex,
An index of a topology edge that is queried.
out bool[]
faceOrientationMatchesEdgeDirection
An array of Boolean values that explains whether each face direction matches the direction of the specified edge.
)
An array of face indices the edge borders. This might be empty on error.

GetConnectedFaces

#Since v5.0
Gets indices of faces connected to an edge.
public int[] GetConnectedFaces(
topologyEdgeIndex
An index of a topology edge that is queried.
)
An array of face indices the edge borders. This might be empty on error.

GetEdgeIndex

#Since v5.0
Returns index of edge that connects topological vertices. returns -1 if no edge is found.
public int GetEdgeIndex(
topologyVertex1,
The first topology vertex index.
topologyVertex2
The second topology vertex index.
)
The edge index.

GetEdgesForFace

#Since v5.0
Gets indices of edges that surround a given face.
public int[] GetEdgesForFace(
faceIndex,
A face index.
out bool[]
sameOrientation
Same length as returned edge index array. For each edge, the sameOrientation value tells you if the edge orientation matches the face orientation (true), or is reversed (false) compared to it.
)
A new array of indices to the topological edges that are connected with the specified face.

GetEdgesForFace

#Since v5.0
Gets indices of edges that surround a given face.
public int[] GetEdgesForFace(
faceIndex
A face index.
)
A new array of indices to the topological edges that are connected with the specified face.

GetTopologyVertices

#Since v5.0
Gets the two topology vertices for a given topology edge.
public IndexPair GetTopologyVertices(
topologyEdgeIndex
An index of a topology edge.
)
The pair of vertex indices the edge connects.

IsEdgeUnwelded

#Since v6.13
Determines if the mesh edge is unwelded, or if the mesh faces that share the edge have unique vertex indices.
public bool IsEdgeUnwelded(
topologyEdgeIndex
An index of a topology edge in Mesh.TopologyEdges.
)
true if the edge is unwelded, false if the edge is welded.

IsHidden

#Since v5.0
Returns true if the topological edge is hidden. The mesh topology edge is hidden only if either of its mesh topology vertices is hidden.
public bool IsHidden(
topologyEdgeIndex
An index of a topology edge in Mesh.TopologyEdges.
)
true if mesh topology edge is hidden.

IsNgonInterior

#Since v6.0
Returns true if the topological edge is an interior ngon edge
public bool IsNgonInterior(
topologyEdgeIndex
An index of a topology edge in Mesh.TopologyEdges.
)
true if mesh topology edge is an interior ngon edge.

IsSwappableEdge

#Since v5.0
Determines if a mesh edge index is valid input for SwapEdge(int).
public bool IsSwappableEdge(
topologyEdgeIndex
An index of a topology edge in Mesh.TopologyEdges.
)
true if edge can be swapped.

SplitEdge

#Since v5.0
Divides a mesh edge to create two or more triangles
public bool SplitEdge(
topologyEdgeIndex,
Edge to divide
t
Parameter along edge. This is the same as getting an EdgeLine and calling PointAt(t) on that line
)
true if successful

SplitEdge

#Since v5.0
Divides a mesh edge to create two or more triangles
public bool SplitEdge(
topologyEdgeIndex,
Edge to divide
point
Location to perform the split
)
true if successful

SwapEdge

#Since v5.0
If the edge is shared by two triangular face, then the edge is swapped.
public bool SwapEdge(
topologyEdgeIndex
An index of a topology edge in Mesh.TopologyEdges.
)
true if successful.