Skip to content
Shapemetry

Model - Subdivide

API reference for src/nodeMethods/subdivide on @huukhanhnguyen/model, reachable from ./compute.

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

triangleArea

function

triangleArea(a: Point$1, b: Point$1, c: Point$1): number

weldTriangleMesh

function

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).

weldTriangleMesh(positions: number[], indices: number[]): TriangleMesh$1
Last updated: 📖 1 min readEdit on GitHub