Benchmarks for tf::tree construction and spatial queries. See experimental setup for methodology.
Construction time for spatial index structures over mesh vertices. TrueForm builds trees with AABB, OBB, and OBBRSS bounding volumes; nanoflann builds a k-d tree. Each configuration is measured 10 times; the mean is reported.


TrueForm AABB tree construction is 7× faster than nanoflann's k-d tree at 1M points, while also supporting OBB and OBBRSS bounding volumes.
Query time for k nearest neighbors. Query points are generated by adding uniform random offsets (within 1% of bounding box diagonal) to mesh vertices. For each mesh size, 1000 queries are executed; the mean time per query is reported. Results shown for k=10.



TrueForm k-NN queries are 3× faster than nanoflann at 500K points.
Construction time for bounding volume hierarchies over triangle meshes. TrueForm trees use arity 4 and leaf size 4. Each configuration is measured 10 times; the mean is reported.
Tree using axis-aligned bounding boxes. TrueForm is compared against CGAL AABB trees and FCL BVHModel<AABB<double>>.



TrueForm AABB tree construction is 23× faster than FCL and 15× faster than CGAL at 1M polygons.
Tree using oriented bounding boxes. TrueForm is compared against FCL BVHModel<OBB<double>>.

TrueForm OBB tree construction is 30× faster than FCL at 1M polygons.
Tree using a hybrid of oriented bounding boxes and rectangle swept spheres. TrueForm is compared against FCL BVHModel<OBBRSS<double>>.

TrueForm OBBRSS tree construction is 35× faster than FCL at 1M polygons.
Minimum distance computation between two copies of the same mesh. The second mesh is placed at a random rigid transform sampled uniformly within a sphere of radius equal to twice the bounding box diagonal. For each mesh size, 1000 random configurations are evaluated; the mean query time is reported. TrueForm uses tf::neighbor_search on polygon forms; FCL uses fcl::distance() with the corresponding BVHModel<BV<double>>.
Using axis-aligned bounding boxes.

TrueForm mesh-to-mesh distance queries with AABB are 540× faster than FCL at 1M polygons per mesh.
Using a hybrid of oriented bounding boxes and rectangle swept spheres.

TrueForm mesh-to-mesh distance queries with OBBRSS are 2× faster than FCL at 1M polygons per mesh. The smaller gap compared to AABB reflects that OBBRSS provides tighter bounds, reducing the number of primitive tests for both libraries.