Skip to content

selection

Benchmarks of ordito.selection 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.1x1x10x100xordito (CUDA): the reference, 1xordito (CUDA)1xMeshLib: 2.6x ordito's time, geometric mean over 5 functions; slower than ordito in 2MeshLib2.6x (5)Open3D: 50x ordito's time, geometric mean over 3 functions; slower than ordito in 3Open3D50x (3)PyVista: 64x ordito's time, geometric mean over 4 functions; slower than ordito in 4PyVista64x (4)trimesh: 97x ordito's time, geometric mean over 3 functions; slower than ordito in 3trimesh97x (3)MeshLab: 98x ordito's time, geometric mean over 2 functions; slower than ordito in 2MeshLab98x (2)
Time relative to ordito (CUDA), geometric mean over the selection 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
MeshLib 2.6x 5 2
Open3D 50x 3 3
PyVista 64x 4 4
trimesh 97x 3 3
MeshLab 98x 2 2

expand_vertex_mask

0.1x1x10x100xordito (CUDA): 26.4 µs, 1x ordito's timeordito (CUDA)1x · 26.4 µsMeshLib: 535.6 µs, 20x ordito's timeMeshLib20x · 535.6 µsMeshLab: 1.06 ms, 40x ordito's timeMeshLab40x · 1.06 ms
sphere_med (81 920 faces) · hops=1 · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 26.4 µs 1x
MeshLib 535.6 µs 20x
MeshLab 1.06 ms 40x
All inputs
Input ordito (CUDA) MeshLab MeshLib
sphere_med hops=1 26.4 µs 1.06 ms 535.6 µs
sphere_med hops=8 58.5 µs 7.51 ms 4.62 ms

shrink_vertex_mask

0.1x1x10x100xordito (CUDA): 26.9 µs, 1x ordito's timeordito (CUDA)1x · 26.9 µsMeshLib: 1.03 ms, 38x ordito's timeMeshLib38x · 1.03 msMeshLab: failed (predicted)MeshLabfailed (predicted)
sphere_med (81 920 faces) · hops=1 · time relative to ordito, log scale · a red cross is a run that left no time
Values
Library Median Relative to ordito
ordito (CUDA) 26.9 µs 1x
MeshLib 1.03 ms 38x
MeshLab failed (predicted)
All inputs
Input ordito (CUDA) MeshLab MeshLib
sphere_med hops=1 26.9 µs failed (predicted) 1.03 ms
sphere_med hops=8 86.2 µs failed (predicted) 3.42 ms

submesh_from_face_indices

0.1x1x10x100x1000xordito (CUDA): 54.4 µs, 1x ordito's timeordito (CUDA)1x · 54.4 µsOpen3D: 1.23 ms, 23x ordito's timeOpen3D23x · 1.23 msPyVista: 4.41 ms, 81x ordito's timePyVista81x · 4.41 mstrimesh: 5.91 ms, 109x ordito's timetrimesh109x · 5.91 msMeshLab: 7.29 ms, 134x ordito's timeMeshLab134x · 7.29 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 54.4 µs 1x
Open3D 1.23 ms 23x
PyVista 4.41 ms 81x
trimesh 5.91 ms 109x
MeshLab 7.29 ms 134x
All inputs
Input ordito (CUDA) MeshLab Open3D PyVista trimesh
sphere_med 54.4 µs 7.29 ms 1.23 ms 4.41 ms 5.91 ms

submesh_from_face_mask

0.1x1x10x100xordito (CUDA): 68.9 µs, 1x ordito's timeordito (CUDA)1x · 68.9 µstrimesh: 6.08 ms, 88x ordito's timetrimesh88x · 6.08 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 68.9 µs 1x
trimesh 6.08 ms 88x
All inputs
Input ordito (CUDA) trimesh
sphere_med 68.9 µs 6.08 ms

submesh_from_vertex_indices

0.1x1x10x100xordito (CUDA): 84.9 µs, 1x ordito's timeordito (CUDA)1x · 84.9 µsPyVista: 4.67 ms, 55x ordito's timePyVista55x · 4.67 msOpen3D: 5.81 ms, 69x ordito's timeOpen3D69x · 5.81 mstrimesh: 7.68 ms, 91x ordito's timetrimesh91x · 7.68 ms
sphere_med (81 920 faces) · face_mode=all · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 84.9 µs 1x
PyVista 4.67 ms 55x
Open3D 5.81 ms 69x
trimesh 7.68 ms 91x
All inputs
Input ordito (CUDA) Open3D PyVista trimesh
sphere_med face_mode=all 84.9 µs 5.81 ms 4.67 ms 7.68 ms
sphere_med face_mode=any 81.4 µs 4.64 ms 8.02 ms

region_boundary_edges

0.01x0.1x1x10x100xMeshLib: 26.8 µs, 0.20x ordito's timeMeshLib0.20x · 26.8 µsordito (CUDA): 136.0 µs, 1x ordito's timeordito (CUDA)1x · 136.0 µsPyVista: 7.94 ms, 58x ordito's timePyVista58x · 7.94 ms
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 26.8 µs 0.20x
ordito (CUDA) 136.0 µs 1x
PyVista 7.94 ms 58x
All inputs
Input ordito (CUDA) MeshLib PyVista
sphere_med 136.0 µs 26.8 µs 7.94 ms

faces_left_of_contour

0.01x0.1x1xMeshLib: 80.5 µs, 0.44x ordito's timeMeshLib0.44x · 80.5 µsordito (CUDA): 184.0 µs, 1x ordito's timeordito (CUDA)1x · 184.0 µs
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 80.5 µs 0.44x
ordito (CUDA) 184.0 µs 1x
All inputs
Input ordito (CUDA) MeshLib
sphere_med 184.0 µs 80.5 µs

delete_region_keep_boundary

0.01x0.1x1xMeshLib: 358.8 µs, 0.87x ordito's timeMeshLib0.87x · 358.8 µsordito (CUDA): 414.1 µs, 1x ordito's timeordito (CUDA)1x · 414.1 µs
sphere_med (81 920 faces) · time relative to ordito, log scale
Values
Library Median Relative to ordito
MeshLib 358.8 µs 0.87x
ordito (CUDA) 414.1 µs 1x
All inputs
Input ordito (CUDA) MeshLib
sphere_med 414.1 µs 358.8 µs

submesh_from_vertex_mask

0.1x1x10x100xordito (CUDA): 71.7 µs, 1x ordito's timeordito (CUDA)1x · 71.7 µsPyVista: 4.62 ms, 64x ordito's timePyVista64x · 4.62 msOpen3D: 5.91 ms, 82x ordito's timeOpen3D82x · 5.91 ms
sphere_med (81 920 faces) · face_mode=all · time relative to ordito, log scale
Values
Library Median Relative to ordito
ordito (CUDA) 71.7 µs 1x
PyVista 4.62 ms 64x
Open3D 5.91 ms 82x
All inputs
Input ordito (CUDA) Open3D PyVista
sphere_med face_mode=all 71.7 µs 5.91 ms 4.62 ms
sphere_med face_mode=any 72.7 µs 4.73 ms

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)
submeshes_from_face_groups sphere_med 135.9 µs
face_indices_from_vertex_indices sphere_med face_mode=any 60.9 µs
delete_region_keep_boundary_with_offsets sphere_med 417.8 µs
exclude_fully_selected_components parts_1024 51.1 µs
fill_face_mask_holes sphere_large keep_largest=True 227.8 µs
vertex_hop_distance sphere_med hops=8 67.5 µs