API Reference > geometry-core > Polyface > IndexedEdgeMatcher > sortAndCollectClusters 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: SortableEdgeCluster[] | undefined, singletons: SortableEdgeCluster[] | undefined, nullEdges: SortableEdgeCluster[] | undefined, allOtherClusters: SortableEdgeCluster[] | undefined): void Parameter Type Description manifoldPairs SortableEdgeCluster[] | undefined optional array to receive pairs of properly mated SortableEdgePairs, i.e. simple interior edges adjacent to two facets in opposing directions. singletons SortableEdgeCluster[] | undefined optional array to receive edges that are simple boundary edges. nullEdges SortableEdgeCluster[] | undefined clusters with null edges (same start and end vertex) allOtherClusters SortableEdgeCluster[] | undefined 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 core/geometry/src/polyface/IndexedEdgeMatcher.ts Line 163 Last Updated: 15 June, 2021