Examples | C++

Overview

Practical examples demonstrating core features, performance comparisons, and framework integration.

The examples are organized into three categories, each designed to showcase different aspects of trueform:

Live Examples

Booleans, collision, isobands, and more — in your browser.

Core Functionality

Self-contained examples demonstrating primitives, spatial queries, and the policy system.

Comparisons

Performance benchmarks against VTK, CGAL, and nanoflann with direct code comparisons.

VTK Integration

Interactive applications showing real-time collision detection, mesh booleans, and curve extraction.

Building Examples

All examples are available in the GitHub repository.

Terminal
cmake -B build -DBUILD_EXAMPLES=ON
cmake --build build --target examples -j8

Core Functionality

Performance Comparisons

  • vs nanoflann - k-NN query performance
  • vs CGAL - Intersections, booleans, planar arrangements
  • vs VTK - Feature extraction and mesh cleaning

Interactive Demos