void FindEdgeLoopForEdges( IReadOnlyList<HalfEdgeHandle> originalEdges, HalfEdgeMesh.HalfEdgeHandle[]& pOutEdgeLoopEdges )

book_4_sparkGenerated
code_blocksInput

Description

The FindEdgeLoopForEdges method is a member of the PolygonMesh class in the Sandbox namespace. This method is used to find and return a loop of edges that are connected in a sequence, starting from a given list of edges. It is particularly useful in mesh editing and manipulation tasks where understanding the connectivity of edges is crucial.

Usage

To use the FindEdgeLoopForEdges method, you need to provide a list of original edges from which the edge loop will be determined. The method will output the loop of edges through the pOutEdgeLoopEdges parameter.

Parameters:

  • originalEdges: A read-only list of HalfEdgeMesh.HalfEdgeHandle representing the starting edges for finding the loop.
  • pOutEdgeLoopEdges: An output parameter that will contain the resulting loop of edges as an array of HalfEdgeMesh.HalfEdgeHandle.

Example

// Example usage of FindEdgeLoopForEdges
PolygonMesh polygonMesh = new PolygonMesh();
IReadOnlyList<HalfEdgeMesh.HalfEdgeHandle> originalEdges = GetOriginalEdges(); // Assume this method provides the initial edges
HalfEdgeMesh.HalfEdgeHandle[] edgeLoop;

polygonMesh.FindEdgeLoopForEdges(originalEdges, out edgeLoop);

// edgeLoop now contains the sequence of edges forming a loop.