Examples | C++

Overview

Guided examples and library comparisons.

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

Complete workflows demonstrating trueform in practice — from basic mesh operations to advanced alignment pipelines. For examples of specific functions, see the module documentation — each section includes working code snippets.

Geometry Walkthrough

Geometry, topology, spatial queries, booleans, isobands, and connected components.

Alignment

Point cloud alignment with OBB, ICP, and chamfer error evaluation.

Library Comparisons

Code comparisons with CGAL, nanoflann, libigl, and VTK.

VTK Integration

Using trueform with VTK applications.

Building

Examples are in the examples/ directory.

cmake -B build -DTF_BUILD_EXAMPLES=ON
cmake --build build --parallel --target trueform_examples

Interactive VTK Examples

The VTK integration includes interactive applications — collision detection, booleans, isocontours — with draggable meshes and real-time updates.

VTK Overview

Integration layer, zero-copy views, and cached acceleration structures.

VTK Examples

Collision, booleans, isocontours, connected components, and more.