Skip to content
Shapemetry

@huukhanhnguyen/model / nodeMethods/subdivide

nodeMethods/subdivide

triangleArea()

triangleArea(a, b, c): number

Parameters

a

Point

b

Point

c

Point

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[]

Returns

TriangleMesh

Last updated: 📖 1 min readEdit on GitHub