Skip to content

intersection

Benchmarks of ordito.intersection against every library that computes the same thing. Each chart shows the time of every library relative to ordito on CUDA (1x, in green): a longer bar took longer. The table under each chart lists every input the function was measured on. See Benchmarks for how to read and reproduce these numbers.

Measured on GPU: NVIDIA GeForce RTX 5090 · CPU: Intel Xeon w7-2495X

Summary

0.01x0.1x1x10x100x1000xmanifold3d: 0.50x ordito's time, geometric mean over 1 functions; slower than ordito in 0manifold3d0.50x (1)ordito (CUDA): the reference, 1xordito (CUDA)1xMeshLib: 1.9x ordito's time, geometric mean over 8 functions; slower than ordito in 4MeshLib1.9x (8)libigl: 65x ordito's time, geometric mean over 2 functions; slower than ordito in 2libigl65x (2)potpourri3d: 107x ordito's time, geometric mean over 2 functions; slower than ordito in 2potpourri3d107x (2)trimesh: 197x ordito's time, geometric mean over 3 functions; slower than ordito in 3trimesh197x (3)PyVista: 486x ordito's time, geometric mean over 7 functions; slower than ordito in 7PyVista486x (7)
Time relative to ordito (CUDA), geometric mean over the intersection functions both implement; in parentheses, the number of functions. Log scale. Runs stopped at the time limit are left out.
Values
Library Time relative to ordito Functions compared ordito faster in
manifold3d 0.50x 1 0
MeshLib 1.9x 8 4
libigl 65x 2 2
potpourri3d 107x 2 2
trimesh 197x 3 3
PyVista 486x 7 7

mesh_with_plane

0.1x1x10x100x1000x10000xordito (CUDA): 51.5 µs, 1x ordito's timeordito (CUDA)1x · 51.5 µsMeshLib: 553.4 µs, 11x ordito's timeMeshLib11x · 553.4 µstrimesh: 35.77 ms, 694x ordito's timetrimesh694x · 35.77 msPyVista: 60.84 ms, 1181x ordito's timePyVista1181x · 60.84 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 51.5 µs 1x
MeshLib 553.4 µs 11x
trimesh 35.77 ms 694x
PyVista 60.84 ms 1181x
All inputs
Input ordito (CUDA) MeshLib PyVista trimesh
sphere_small 90.1 µs
bunny_decimated 60.1 µs 59.9 µs 1.58 ms 660.3 µs
bunny 54.1 µs 98.7 µs 5.42 ms 2.23 ms
dragon 51.5 µs 553.4 µs 60.84 ms 35.77 ms
happy_buddha 65.6 µs 191.7 µs 76.21 ms 42.59 ms
lucy 382.4 µs 2.30 ms 2.184 s 851.68 ms

slice_mesh_with_plane

0.1x1x10x100x1000xordito (CUDA): 140.7 µs, 1x ordito's timeordito (CUDA)1x · 140.7 µsMeshLib: 27.27 ms, 194x ordito's timeMeshLib194x · 27.27 mstrimesh: 120.24 ms, 854x ordito's timetrimesh854x · 120.24 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 140.7 µs 1x
MeshLib 27.27 ms 194x
trimesh 120.24 ms 854x
All inputs
Input ordito (CUDA) MeshLib trimesh
sphere_small 102.8 µs
bunny_decimated 106.2 µs 5.95 ms 1.48 ms
bunny 129.0 µs 2.47 ms 5.87 ms
dragon 140.7 µs 27.27 ms 120.24 ms
happy_buddha 163.6 µs 32.01 ms 140.47 ms
lucy 8.03 ms 3.851 s 3.147 s

split_mesh_with_plane

0.1x1x10x100x1000x10000xordito (CUDA): 190.1 µs, 1x ordito's timeordito (CUDA)1x · 190.1 µsMeshLib: 25.58 ms, 135x ordito's timeMeshLib135x · 25.58 msPyVista: 330.25 ms, 1738x ordito's timePyVista1738x · 330.25 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 190.1 µs 1x
MeshLib 25.58 ms 135x
PyVista 330.25 ms 1738x
All inputs
Input ordito (CUDA) MeshLib PyVista
sphere_small 153.2 µs
bunny_decimated 149.2 µs 5.84 ms 6.66 ms
bunny 133.5 µs 2.12 ms 22.66 ms
dragon 190.1 µs 25.58 ms 330.25 ms
happy_buddha 195.8 µs 31.24 ms 420.36 ms
lucy 2.70 ms 3.728 s 56.070 s

split_faces_along_field

0.1x1x10x100x1000x10000xordito (CUDA): 282.8 µs, 1x ordito's timeordito (CUDA)1x · 282.8 µsPyVista: 336.90 ms, 1191x ordito's timePyVista1191x · 336.90 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 282.8 µs 1x
PyVista 336.90 ms 1191x
All inputs
Input ordito (CUDA) PyVista
sphere_small 228.5 µs
bunny_decimated 164.4 µs 6.81 ms
bunny 191.9 µs 24.41 ms
dragon 282.8 µs 336.90 ms
happy_buddha 288.3 µs 435.12 ms
lucy 6.23 ms 62.370 s

clip_mesh_with_field

0.1x1x10x100x1000xordito (CUDA): 169.2 µs, 1x ordito's timeordito (CUDA)1x · 169.2 µsPyVista: 114.56 ms, 677x ordito's timePyVista677x · 114.56 ms
dragon (871 414 faces) · cap=False · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 169.2 µs 1x
PyVista 114.56 ms 677x
All inputs
Input ordito (CUDA) PyVista
sphere_small cap=False 97.0 µs
sphere_small cap=True 802.1 µs
bunny_decimated cap=False 90.5 µs 2.34 ms
bunny_decimated cap=True 1.39 ms
bunny cap=False 103.8 µs 9.18 ms
bunny cap=True 2.05 ms
dragon cap=False 169.2 µs 114.56 ms
dragon cap=True 4.20 ms
happy_buddha cap=False 177.2 µs 159.36 ms
happy_buddha cap=True 3.97 ms
lucy cap=False 8.74 ms 27.915 s
lucy cap=True 21.75 ms

mesh_with_mesh

0.1x1x10x100x1000x10000xordito (CUDA): 2.07 ms, 1x ordito's timeordito (CUDA)1x · 2.07 msMeshLib: 3.14 ms, 1.5x ordito's timeMeshLib1.5x · 3.14 msPyVista: 6.000 s, 2901x ordito's timePyVista2901x · 6.000 s
dragon (871 414 faces) · offset_fraction=0.05 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 2.07 ms 1x
MeshLib 3.14 ms 1.5x
PyVista 6.000 s 2901x
All inputs
Input ordito (CUDA) MeshLib PyVista
sphere_small offset_fraction=0.05 372.6 µs
sphere_small offset_fraction=0.6 281.0 µs
bunny_decimated offset_fraction=0.05 403.3 µs 358.6 µs 81.97 ms
bunny_decimated offset_fraction=0.6 286.5 µs 36.7 µs 45.25 ms
bunny offset_fraction=0.05 481.2 µs 781.4 µs 339.46 ms
bunny offset_fraction=0.6 299.3 µs 46.7 µs 214.26 ms
dragon offset_fraction=0.05 2.07 ms 3.14 ms 6.000 s
dragon offset_fraction=0.6 1.36 ms 145.0 µs 3.408 s
happy_buddha offset_fraction=0.05 2.74 ms 3.78 ms 10.235 s
happy_buddha offset_fraction=0.6 1.72 ms 175.8 µs 4.461 s
lucy offset_fraction=0.05 54.28 ms 21.23 ms 137.099 s
lucy offset_fraction=0.6 48.57 ms 5.41 ms 127.702 s

mesh_collision_pairs

0.1x1x10x100x1000x10000xordito (CUDA): 1.39 ms, 1x ordito's timeordito (CUDA)1x · 1.39 msPyVista: 1.876 s, 1353x ordito's timePyVista1353x · 1.876 s
dragon (871 414 faces) · offset_fraction=0.6 · setup=full · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 1.39 ms 1x
PyVista 1.876 s 1353x
All inputs
Input ordito (CUDA) MeshLib PyVista
sphere_small offset_fraction=0.05 setup=full 329.5 µs
sphere_small offset_fraction=0.6 setup=full 290.0 µs
sphere_small offset_fraction=0.05 setup=amortized 193.0 µs
sphere_small offset_fraction=0.6 setup=amortized 138.4 µs
bunny_decimated offset_fraction=0.05 setup=full 366.2 µs 5.123 s
bunny_decimated offset_fraction=0.6 setup=full 310.8 µs 51.67 ms
bunny_decimated offset_fraction=0.05 setup=amortized 253.5 µs 1.88 ms
bunny_decimated offset_fraction=0.6 setup=amortized 159.9 µs 2.6 µs
bunny offset_fraction=0.05 setup=full 488.4 µs 61.364 s
bunny offset_fraction=0.6 setup=full 380.2 µs 169.60 ms
bunny offset_fraction=0.05 setup=amortized 266.7 µs 3.78 ms
bunny offset_fraction=0.6 setup=amortized 112.7 µs 2.4 µs
dragon offset_fraction=0.6 setup=full 1.39 ms 1.876 s
dragon offset_fraction=0.05 setup=amortized 1.14 ms 19.43 ms
dragon offset_fraction=0.6 setup=amortized 525.1 µs 2.3 µs
dragon offset_fraction=0.05 setup=full 1.98 ms > 10 min (predicted)
happy_buddha offset_fraction=0.6 setup=full 1.74 ms 223.475 s
happy_buddha offset_fraction=0.05 setup=amortized 1.41 ms 27.54 ms
happy_buddha offset_fraction=0.6 setup=amortized 556.3 µs 2.9 µs
happy_buddha offset_fraction=0.05 setup=full 2.54 ms > 10 min (predicted)
lucy offset_fraction=0.6 setup=full 48.55 ms 56.335 s
lucy offset_fraction=0.05 setup=amortized 18.94 ms 117.35 ms
lucy offset_fraction=0.6 setup=amortized 13.67 ms 0.8 µs
lucy offset_fraction=0.05 setup=full 53.38 ms > 10 min (predicted)

collision_masks

0.1x1x10xordito (CUDA): 2.14 ms, 1x ordito's timeordito (CUDA)1x · 2.14 msMeshLib: 19.36 ms, 9.1x ordito's timeMeshLib9.1x · 19.36 ms
dragon (871 414 faces) · offset_fraction=0.05 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 2.14 ms 1x
MeshLib 19.36 ms 9.1x
All inputs
Input ordito (CUDA) MeshLib
sphere_small offset_fraction=0.05 299.9 µs
sphere_small offset_fraction=0.6 252.5 µs
bunny_decimated offset_fraction=0.05 300.8 µs 1.86 ms
bunny_decimated offset_fraction=0.6 234.9 µs 1.1 µs
bunny offset_fraction=0.05 384.0 µs 3.83 ms
bunny offset_fraction=0.6 273.9 µs 1.3 µs
dragon offset_fraction=0.05 2.14 ms 19.36 ms
dragon offset_fraction=0.6 1.38 ms 1.5 µs
happy_buddha offset_fraction=0.05 2.74 ms 27.02 ms
happy_buddha offset_fraction=0.6 1.66 ms 1.4 µs
lucy offset_fraction=0.05 52.77 ms 118.52 ms
lucy offset_fraction=0.6 47.90 ms 1.4 µs

segments_with_plane

0.1x1x10x100x1000xordito (CUDA): 66.6 µs, 1x ordito's timeordito (CUDA)1x · 66.6 µstrimesh: 46.31 ms, 695x ordito's timetrimesh695x · 46.31 ms
dragon (871 414 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 66.6 µs 1x
trimesh 46.31 ms 695x
All inputs
Input ordito (CUDA) trimesh
sphere_small 74.5 µs
bunny_decimated 68.9 µs 513.7 µs
bunny 69.8 µs 2.32 ms
dragon 66.6 µs 46.31 ms
happy_buddha 82.1 µs 58.89 ms
lucy 740.7 µs 1.875 s

marching_triangles

0.1x1x10x100x1000xordito (CUDA): 459.1 µs, 1x ordito's timeordito (CUDA)1x · 459.1 µsMeshLib: 510.7 µs, 1.1x ordito's timeMeshLib1.1x · 510.7 µsPyVista: 34.70 ms, 76x ordito's timePyVista76x · 34.70 mslibigl: 121.63 ms, 265x ordito's timelibigl265x · 121.63 mspotpourri3d: 192.42 ms, 419x ordito's timepotpourri3d419x · 192.42 ms
sphere_large (327 680 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 459.1 µs 1x
MeshLib 510.7 µs 1.1x
PyVista 34.70 ms 76x
libigl 121.63 ms 265x
potpourri3d 192.42 ms 419x
All inputs
Input ordito (CUDA) libigl MeshLib potpourri3d PyVista
sphere_small 288.5 µs 6.76 ms 103.4 µs 1.98 ms 717.5 µs
sphere_med 386.3 µs 34.63 ms 158.2 µs 37.94 ms 5.55 ms
sphere_large 459.1 µs 121.63 ms 510.7 µs 192.42 ms 34.70 ms

marching_triangles_curves

0.01x0.1x1x10x100xMeshLib: 112.9 µs, 0.20x ordito's timeMeshLib0.20x · 112.9 µsordito (CUDA): 570.9 µs, 1x ordito's timeordito (CUDA)1x · 570.9 µspotpourri3d: 37.14 ms, 65x ordito's timepotpourri3d65x · 37.14 mslibigl: 40.01 ms, 70x ordito's timelibigl70x · 40.01 ms
sphere_med (81 920 faces) · field=plane · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 112.9 µs 0.20x
ordito (CUDA) 570.9 µs 1x
potpourri3d 37.14 ms 65x
libigl 40.01 ms 70x
All inputs
Input ordito (CUDA) libigl MeshLib potpourri3d
sphere_med field=plane 570.9 µs 40.01 ms 112.9 µs 37.14 ms
sphere_med field=wave12 577.3 µs 41.86 ms 1.44 ms 94.57 ms
sphere_med field=wave40 1.66 ms 43.34 ms 6.64 ms 848.79 ms

marching_triangles_with_offsets

0.01x0.1x1xmanifold3d: 267.3 µs, 0.50x ordito's timemanifold3d0.50x · 267.3 µsordito (CUDA): 537.0 µs, 1x ordito's timeordito (CUDA)1x · 537.0 µs
sphere_med (81 920 faces) · field=plane · time relative to ordito, log scale
Values
Library Median Relative to ordito
manifold3d 267.3 µs 0.50x
ordito (CUDA) 537.0 µs 1x
All inputs
Input ordito (CUDA) manifold3d
sphere_med field=plane 537.0 µs 267.3 µs
sphere_med field=wave12 373.0 µs
sphere_med field=wave40 499.4 µs

Without a reference

No other library computes these, so they have no comparison. ordito (CUDA)'s median time on the largest input it was measured on:

Function Input ordito (CUDA)
face_box_candidates lucy offset_fraction=0.6 4.01 ms