Overview | PY

Overview

Practical examples demonstrating trueform with Python.

Try trueform without installing anything. The live examples run booleans, collision, and isobands in your browser.

Running the Examples

pip install trueform
git clone https://github.com/polydera/trueform.git
cd trueform/python/examples
ScriptDescription
alignment.pyPoint cloud alignment with rigid, OBB, and ICP

Interactive VTK Examples

The vtk/ directory contains interactive applications. Each opens a window where you can drag meshes and see results update in real time.

pip install vtk
ScriptDescription
collision.py5×5 grid of meshes — hover to highlight, drag to move, collisions turn cyan
boolean_difference.pyDual viewport showing inputs and boolean result
intersection_curves.pyReal-time mesh-mesh intersection curves
isobands.pyExtract regions between scalar thresholds
isocontours.pyExtract contour curves at scalar thresholds

Guided Examples

Step-by-step walkthroughs in the documentation:

Core Functionality

Primitives, spatial queries, topology, and boolean operations.

VTK Integration

Converting between VTK and trueform, building interactive applications.