Modules | PY

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 trueform as tf

point = tf.Point([1, 2, 3])
mesh = tf.Mesh(faces, points)
result = tf.read_stl("model.stl")

Modules

Each module page documents its API with working code snippets.

Core

Primitives, batch support, transformations, and data structures.

Spatial

Forms, 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, and region classification.

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.