Modules | TS

Overview

Modules and import convention.

trueform is organized into focused modules, each providing tools for a specific aspect of geometric processing.

Import

All functionality is accessible through a single import:

import * as tf from "@polydera/trueform";

const point = tf.point(1, 2, 3);
const mesh = tf.readStl(buffer);
const arr = tf.ndarray([1, 2, 3, 4], [2, 2]);

Modules

Each module page documents its API with working code snippets.

Core

NDArray, primitives, forms, transformations, and basic geometric queries.

Spatial

Spatial queries and acceleration structures.

Topology

Connectivity analysis and component labeling.

Geometry

Point cloud alignment and geometric error metrics.

Remesh

Decimation, simplification, and isotropic remeshing.

Intersect

Mesh intersections and self-intersections.

Arrangement

Mesh and polygon arrangements along exact intersection curves.

Iso

Scalar field isocontours and isobands.

CSG

Booleans and N-form expressions over one arrangement, built once.

Clean

Remove duplicates, degenerates, and unreferenced elements.

Reindex

Extract, filter, and reorganize geometric data.

I/O

Read and write STL and OBJ files.