sortAndCollectClusters Method

sort the edges, and look for three categories of paired edges:

  • caller must allocate all result arrays of interest.
  • Any combination of the result arrays may be undefined, indicating that category is to be ignored.
  • Any combination of the result arrays may be aliased as the same target, in which case those to categories are merged into the target.
  • For instance, to ignore manifold pairs and collect all others (singleton and other) as a single array allOther, create const allOther = [] as an empty array and call sortAndCollectClusters (undefined, allOther, allOther);

sortAndCollectClusters(manifoldPairs: undefined | SortableEdgeCluster[], singletons: undefined | SortableEdgeCluster[], nullEdges: undefined | SortableEdgeCluster[], allOtherClusters: undefined | SortableEdgeCluster[]): void

Parameter Type Description
manifoldPairs undefined | SortableEdgeCluster[] optional array to receive pairs of properly mated SortableEdgePairs, i.e. simple interior edges adjacent to two facets in opposing directions.
singletons undefined | SortableEdgeCluster[] optional array to receive edges that are simple boundary edges.
nullEdges undefined | SortableEdgeCluster[] clusters with null edges (same start and end vertex)
allOtherClusters undefined | SortableEdgeCluster[] optional array to receive arrays in which all the edges are partners in an undirected sense but not a simple directed pair.

Returns - void

Defined in

Last Updated: 12 June, 2024