ReadonlydistanceMinimum distance between the two surfaces. 0 when they touch or overlap.
ReadonlypointWitness point on mesh A.
ReadonlypointWitness point on mesh B.
ReadonlytriangleTriangle indices the witness points lie on.
Readonlytriangle
Minimum-distance query, exposed here rather than left package-private because every consumer that wants it lives outside this package. The viewer's measure tool needs the exact surface-to-surface distance, and before this it could not reach any of the machinery:
triTriDistancesits undermath/, which has no export subpath, so a deep import is hard-blocked byERR_PACKAGE_PATH_NOT_EXPORTED.buildMeshBvh/queryMeshCrosscome with it: a caller measuring one element against several should build each tree once rather than pay for it per query.