IndexedEdgeMatcher Class
An IndexedEdgeMatcher carries an array of edge start and end indices for sorting and subsequent analyses, such as testing for closed mesh.
Methods
| Name | Description | |
|---|---|---|
| constructor(): IndexedEdgeMatcher | Constructor. | |
| addEdge(vertexA: number, vertexB: number, facetIndex: number): SortableEdge | Push a new edge. | |
| addPath(vertexIndices: number[], facetIndex: number, closeLoop: boolean): void | Push edges along a path. | |
| sort(): void | Sort the edges. | |
| sortAndCollectClusters(manifoldPairs?: SortableEdgeCluster[], singletons?: SortableEdgeCluster[], nullEdges?: SortableEdgeCluster[], allOtherClusters?: SortableEdgeCluster[]): void | Sort the edges, and collect up to four categories of edges: manifold pairs, singletons, null edges, |
Properties
| Name | Type | Description | |
|---|---|---|---|
| edges | SortableEdge[] | The array of edges to be sorted. |
Defined in
- polyface/IndexedEdgeMatcher.ts Line 140
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.