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 and isotropic remeshing.

Intersect

Mesh intersections and isocontours.

Cut

Mesh booleans and isobands.

Clean

Remove duplicates, degenerates, and unreferenced elements.

Reindex

Extract, filter, and reorganize geometric data.

I/O

Read and write STL and OBJ files.