int FindEdgeRibs( IReadOnlyList<HalfEdgeHandle> edges, List<List`1, HalfEdgeHandle, &> outLeftRibs, List<List`1, HalfEdgeHandle, &> outRightRibs )

book_4_sparkGenerated
code_blocksInput

Description

The FindEdgeRibs method is a member of the PolygonMesh class in the Sandbox namespace. This method is used to find and categorize the ribs of a set of edges in a polygon mesh. It takes a list of edges and outputs two lists of edge lists, representing the left and right ribs of the input edges.

Usage

To use the FindEdgeRibs method, you need to provide a list of edges as input. The method will populate the output parameters outLeftRibs and outRightRibs with the corresponding edge ribs. These output parameters are lists of lists, where each inner list contains the handles of the half-edges that form a rib.

Ensure that the input list of edges is valid and that the output lists are initialized before calling this method.

Example

// Example usage of FindEdgeRibs
var polygonMesh = new PolygonMesh();
var edges = new List<HalfEdgeMesh.HalfEdgeHandle>();
// Assume edges are populated with valid half-edge handles

List<List<HalfEdgeMesh.HalfEdgeHandle>> leftRibs = new List<List<HalfEdgeMesh.HalfEdgeHandle>>();
List<List<HalfEdgeMesh.HalfEdgeHandle>> rightRibs = new List<List<HalfEdgeMesh.HalfEdgeHandle>>();

int ribCount = polygonMesh.FindEdgeRibs(edges, out leftRibs, out rightRibs);

// leftRibs and rightRibs now contain the categorized edge ribs