editor › Globals › FilterDegeneratedEdges
Class: FilterDegeneratedEdges
Filter the eedges so we do not include edges with length 0 (so the next edge starts at the same point). Assumes that the given array of edges is the result of edge.traceCycle(), all next and previous edges are assigned.
Hierarchy
- FilterDegeneratedEdges
Index
Methods
Methods
Static Private _findStartEdgeWithLengthNotZero
▸ _findStartEdgeWithLengthNotZero(cycle: MeshHalfEdge[]): MeshHalfEdge | null
Defined in src/util/Polygon3DFixing/FilterDegeneratedEdges.ts:19
Parameters:
| Name | Type |
|---|---|
cycle |
MeshHalfEdge[] |
Returns: MeshHalfEdge | null
Static Private _skipZeroLengthEdges
▸ _skipZeroLengthEdges(cycle: MeshHalfEdge[], startEdge: MeshHalfEdge): void
Defined in src/util/Polygon3DFixing/FilterDegeneratedEdges.ts:41
Parameters:
| Name | Type |
|---|---|
cycle |
MeshHalfEdge[] |
startEdge |
MeshHalfEdge |
Returns: void
Static execute
▸ execute(cycle: MeshHalfEdge[]): MeshHalfEdge[] | null
Defined in src/util/Polygon3DFixing/FilterDegeneratedEdges.ts:10
Parameters:
| Name | Type |
|---|---|
cycle |
MeshHalfEdge[] |
Returns: MeshHalfEdge[] | null