Solid.splitSelfIntersectingTriangles()
July 1, 2026 ยท View on GitHub
Detects self-intersecting triangle pairs and subdivides them conservatively in place while preserving face IDs.
Usage
solid.splitSelfIntersectingTriangles();
Signature
solid.splitSelfIntersectingTriangles(options = false)
Parameters
options(boolean | object, defaultfalse) - Passingtrueis shorthand for{ diagnostics: true }.
Options
diagnostics(boolean, defaultfalse) - Enables additional diagnostic logging.detectOnly(boolean, defaultfalse) - Detect intersections without mutating authored geometry.probeOnly(boolean, defaultfalse) - Detection mode treated likedetectOnly.returnIntersections(boolean, defaultfalse) - In detection mode, return intersection records instead of a count.includePointContacts(boolean, defaulttrue) - Include point-contact intersections.includeCoplanar(boolean, defaulttrue) - Include coplanar triangle interactions.maxIntersections(number, default0) - Detection limit.0means no explicit limit.snapTolerance(number, default derived from model scale) - Tolerance for snapping generated intersection points.tolerance(number, optional) - Fallback tolerance used whensnapToleranceis not provided.
Returns
number | object[] - Usually the number of intersecting pairs processed. With detectOnly and returnIntersections, returns intersection records.
Pass true for additional diagnostics when debugging complex meshes.