MeshTopologyEdgeList
ReferencesRepresents an entry point to the list of edges in a mesh topology.
Properties
Methods
Replaces a mesh edge with a vertex at its center and update adjacent faces as needed.
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge in Mesh.TopologyEdges. |
Returns: true if successful.
Gets the 3d line along an edge.
Parameters:
| topologyEdgeIndex (int) | The topology edge index. |
Returns: Line along edge. If input is not valid, an Invalid Line is returned.
public int[] GetConnectedFaces(int topologyEdgeIndex, out bool[] faceOrientationMatchesEdgeDirection)
Gets indices of faces connected to an edge.
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge that is queried. |
| faceOrientationMatchesEdgeDirection (out bool[]) | An array of Boolean values that explains whether each face direction matches the direction of the specified edge. |
Returns: An array of face indices the edge borders. This might be empty on error.
Gets indices of faces connected to an edge.
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge that is queried. |
Returns: An array of face indices the edge borders. This might be empty on error.
Returns index of edge that connects topological vertices. returns -1 if no edge is found.
Gets indices of edges that surround a given face.
Parameters:
| faceIndex (int) | A face index. |
| sameOrientation (out bool[]) | 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. |
Returns: A new array of indices to the topological edges that are connected with the specified face.
Gets indices of edges that surround a given face.
Parameters:
| faceIndex (int) | A face index. |
Returns: A new array of indices to the topological edges that are connected with the specified face.
Gets the two topology vertices for a given topology edge.
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge. |
Returns: The pair of vertex indices the edge connects.
Determines if the mesh edge is unwelded, or if the mesh faces that share the edge have unique vertex indices.
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge in Mesh.TopologyEdges. |
Returns: true if the edge is unwelded, false if the edge is welded.
Returns true if the topological edge is an interior ngon edge
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge in Mesh.TopologyEdges. |
Returns: true if mesh topology edge is an interior ngon edge.
Determines if a mesh edge index is valid input for SwapEdge(int).
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge in Mesh.TopologyEdges. |
Returns: true if edge can be swapped.
Divides a mesh edge to create two or more triangles
Divides a mesh edge to create two or more triangles
If the edge is shared by two triangular face, then the edge is swapped.
Parameters:
| topologyEdgeIndex (int) | An index of a topology edge in Mesh.TopologyEdges. |
Returns: true if successful.