void FindEdgeRing( HalfEdgeHandle hEdge, List<HalfEdgeHandle, &> outEdgeList )

book_4_sparkGenerated
code_blocksInput

Description

The FindEdgeRing method is used to identify all the edges that form a ring with a specified edge in a polygon mesh. An edge ring is a sequence of edges that are connected through a loop of faces, effectively forming a continuous loop around a mesh.

Usage

To use the FindEdgeRing method, you need to provide a handle to a half-edge from which the edge ring search will begin. The method will populate the provided list with the handles of all edges that form the ring.

Parameters:

  • hEdge: A HalfEdgeMesh.HalfEdgeHandle representing the starting edge for the ring search.
  • outEdgeList: An output parameter that will be filled with a list of HalfEdgeMesh.HalfEdgeHandle objects representing the edges in the ring.

Example

// Example usage of FindEdgeRing
PolygonMesh mesh = new PolygonMesh();
HalfEdgeMesh.HalfEdgeHandle startEdge = ...; // Assume this is initialized
List<HalfEdgeMesh.HalfEdgeHandle> edgeRing = new List<HalfEdgeMesh.HalfEdgeHandle>();

mesh.FindEdgeRing(startEdge, out edgeRing);

// edgeRing now contains all the edges in the ring starting from startEdge.