@huukhanhnguyen/model / nodeMethods/subdivide
nodeMethods/subdivide
triangleArea()
triangleArea(
a,b,c):number
Parameters
a
b
c
Returns
number
weldTriangleMesh()
weldTriangleMesh(
positions,indices):TriangleMesh
Merge vertices sharing a quantized position and drop the triangles that collapse. tolerance is left to the kernel default (1e-4). Returns the canonical triangulation (types' TriangleMesh, attribute channels absent) — the shared-vertex intermediate IS the bare triangulation, just welded; the nested point spelling exists only at doors (meshPointAt in utils.ts).
Parameters
positions
number[]
indices
number[]