trueform
A robust, high-performance geometry processing engine providing fast and exact mesh booleans, spatial queries, registration, and remeshing for C++, Python, and TypeScript developers.
Trueform is a high-performance geometry processing library designed for fast and exact mesh operations. Developed by Polydera, it acts as a comprehensive "STL for Geometry," providing developers with a unified engine across C++, Python, and TypeScript. By utilizing header-only C++ as its foundation, the library offers zero-copy views and highly optimized parallel algorithms capable of handling million-polygon meshes in real-time. It is engineered for robustness, supporting non-manifold geometry, self-intersections, and degenerate faces, making it suitable for complex real-world data in fields such as medical surgical planning, industrial engineering, and pharmaceutical manufacturing.
Functionally, Trueform enables advanced geometric workflows by abstracting complex algorithms into intuitive API calls. It supports essential operations including mesh booleans, spatial queries, arrangements, point cloud alignment, and remeshing. The library leverages exact arithmetic and integer predicates to eliminate floating-point errors, ensuring that geometric decisions are consistent even on messy inputs. Its composable design allows users to define spatial trees once and reuse them across different queries, such as k-NN, distance calculation, and collision detection, while automatically tracking geometry changes for efficiency.
Some of the key features are:
- Exact Mesh Booleans: High-performance boolean operations like union, intersection, and difference that resolve self-intersections and maintain manifold topology.
- Spatial Acceleration: Advanced AABB trees and spatial indexing for rapid k-NN, ray casting, distance, and collision queries on dynamic meshes.
- Robust Geometry: Handles real-world mesh defects such as flaps, inconsistent winding, and non-manifold edges with canonical topology processing.
- Unified Multi-Language API: Consistent interface available natively in C++, Python (via NumPy), and TypeScript (via WASM-backed NDArrays).
- Advanced Remeshing: Includes tools for isotropic remeshing, decimation, and simplification with strict error budgets to optimize geometry for downstream applications.
- VTK and Blender Integration: Native wrappers for VTK pipeline filters and a Blender add-on with cached geometry processing for interactive live previews.
- Parallel Performance: Multi-threaded execution on modern CPU architectures, ensuring interactive latency even for massive datasets.
The library is designed for ease of use, with a modular architecture that allows developers to integrate only the necessary functionality. In C++, it provides header-only access with CMake and Conan support, while the Python version operates directly on NumPy arrays for seamless integration into data science workflows. The TypeScript SDK brings native-speed geometry processing to browser applications and Node.js. Furthermore, Trueform is built with AI integration in mind, featuring schema-driven interfaces that allow autonomous agents and AI models to browse capabilities and operate on geometry safely.
Some common use cases include:
- Medical Surgical Planning: Analyzing patient-specific anatomical data for precise surgical simulations and intraoperative visualizations.
- Industrial 3D Printing: Pre-processing, repairing, and optimizing complex CAD models to ensure successful print outcomes in pharmaceutical and manufacturing settings.
- Spatial Analysis: Calculating distance fields, principal curvatures, and intersection curves on dense point clouds or scanned geometry.
- Interactive Design Tools: Enabling real-time boolean and remeshing feedback in web-based or desktop 3D modeling applications.
- Automated Geometry Pipelines: Building scalable, headless geometry processing services in cloud environments for engineering and research tasks.
Comments
0Markdown is supported.