| Create and load |
|
| make a primitive (box, sphere, cylinder, torus...) |
creation: box, icosphere, uv_sphere, cylinder, torus, grid |
| revolve, extrude or sweep a profile |
revolve, extrude_polygon, sweep_polygon |
| load a mesh file (OBJ, PLY, STL, ...) |
io.load_mesh_data, io.load_mesh (needs ordito[io]) |
| work with an object that caches derived quantities |
Trimesh |
| Inspect |
|
| face normals, areas, angles, centroids |
triangles.face_normals_and_areas, face_angles, face_centroids |
| vertex normals |
normals.vertex_normals |
| volume, centre of mass, inertia, Euler characteristic |
measures: volume, moments, euler_characteristic |
| is it watertight / manifold / orientable / self-intersecting? |
validation: is_watertight, is_edge_manifold, is_orientable, is_self_intersecting |
| are two meshes the same up to vertex and face numbering? |
comparison.meshes_allclose, triangles_allclose, faces_equal |
| unique edges and their lengths |
edges.edges_unique, edges_unique_length |
| boundary edges and hole rims |
boundary.boundary_edges, boundary_loops |
| neighbouring faces and connected components |
adjacency.face_adjacency, face_connected_component_labels, combine.split |
| curvature |
curvature: vertex_defects, discrete_gaussian_curvature, discrete_mean_curvature, principal_curvature, mls_principal_curvature |
| bounding boxes |
bounds.aabb, bounds.oriented_bounding_box |
| triangle quality |
triangles.face_quality |
| Repair |
|
| make a broken mesh a closed solid in one call |
repair.make_solid |
| merge duplicate vertices, drop degenerate or unused elements |
repair.remove_duplicated_vertices, remove_degenerate_faces, remove_unreferenced_vertices |
| fix needle and cap triangles within a deviation bound |
repair.fix_degeneracies, collapse_small_triangles |
| fix the winding, or point normals outward |
repair.make_winding_consistent, make_normals_outward |
| remove small floating pieces |
repair.remove_small_components |
| fill holes |
holes: fill_small, fill_min_weight, fill_smooth |
| remove self-intersections |
repair.fix_self_intersections |
| Edit |
|
| move, rotate, scale, mirror |
transform: transform_mesh, rotation_matrix |
| combine meshes, or split into parts |
combine.concatenate, combine.split |
| union, intersection or difference of two solids |
boolean: union, intersection, difference |
| the same for many solids at once |
union_all, intersection_all, difference_all |
| cut a solid by another solid or a plane, capped |
split_by_mesh, split_by_plane, trim_by_plane |
| triangulate a planar region with holes |
polyline.triangulate_polygons, triangulate_polygons_from_offsets |
| keep a subset of faces |
selection.submesh_from_face_mask |
| grow a selection, or measure hops from it |
selection.expand_vertex_mask, vertex_hop_distance |
| carry colours, UVs, labels or any per-vertex or per-face field through an edit |
return_provenance=True and interpolation.Provenance |
| turn per-corner values (a UV atlas, hard normals) into per-vertex ones, or weld them back |
repair.split_vertices_by_corner_values, remove_duplicated_vertices with vertex_values |
| read a per-vertex field at surface samples or query hits |
interpolation.interpolate_barycentric, sample.sample_surface with return_barycentric=True |
| remesh to uniform edge lengths |
remesh.isotropic_remesh |
| simplify (decimate) |
remesh.quadric_decimate, cluster_decimate |
| drop a closed mesh's redundant vertices within a tolerance |
remesh.simplify |
| subdivide |
remesh.subdivide, subdivide_loop, subdivide_to_size |
| refine a solid onto a smooth surface through its vertices, keeping creases |
remesh.subdivide_smooth |
| smooth |
smoothing: filter_taubin, filter_laplacian, filter_implicit_fairing |
| offset or thicken a surface |
levelset.offset_mesh, levelset.thicken_mesh |
| cut with a plane |
intersection.slice_mesh_with_plane, split_mesh_with_plane, mesh_with_plane |
| extract an isosurface |
levelset.marching_cubes, intersection.marching_triangles |
| a solid from a signed distance function |
levelset.function_level_set |
| Query |
|
| closest point on a surface, signed distance |
proximity.closest_point_on_mesh, signed_distance_on_mesh, winding_number |
| cast rays |
ray.intersects_first, intersects_location, first_hits |
| every crossing of segments with a closed surface, exact at edges and vertices |
ray.segment_hits |
| test which points are inside |
ray.contains_points |
| nearest neighbours, radius search |
neighbors.query_nearest, query_ball |
| sum or average a value over each point's neighbourhood without listing the neighbours |
neighbors.query_ball_sum |
| one-to-one matches between two clouds (mutual nearest neighbours) |
neighbors.mutual_nearest |
| Chamfer and Hausdorff distances |
metrics: chamfer_mesh_to_mesh, hausdorff_mesh_to_mesh |
| intersection curve of two meshes, colliding faces |
intersection.mesh_with_mesh, collision_masks |
| Point clouds |
|
| sample points on a surface |
sample.sample_surface, sample_surface_poisson_disk |
| sample the surface inside a ball |
sample.sample_surface_in_ball |
| estimate normals |
points.estimate_normals |
| orient or smooth normals |
points.orient_normals (spanning-tree propagation), smooth_normals |
| smooth a point cloud |
points.smooth_points (Laplacian or Taubin), smooth_points_mls (moving least squares), smooth_points_bilateral |
| per-point covariances and frames |
points.point_covariances, point_frames |
| cluster a point cloud |
points.cluster_labels (DBSCAN, Euclidean clusters) |
| boundary points of a cloud |
points.point_boundary_mask |
| geodesic and signed distance, transport and log map on a cloud |
heat.PointCloudHeatSolver (heat method on the local triangulations' tufted cover), points.local_triangulation |
| points visible from a viewpoint |
points.point_visible_mask (hidden point removal) |
| down-sample |
voxels.voxel_down_sample, points.farthest_point_sample |
| order points or cells along a Hilbert or Morton curve |
points.space_filling_order, voxels.space_filling_codes |
| remove outliers |
points.statistical_outlier_mask, radius_outlier_mask, cluster_outlier_mask, plane_outlier_mask, normal_outlier_mask |
| convex hull (example) |
points.convex_hull (exact), convex_superset_mask (prefilter) |
| reconstruct a surface |
reconstruction.screened_poisson, ball_pivoting |
| align two scans |
registration.icp, icp_point_to_plane, procrustes |
| fit many sets of corresponding points at once, robust to outliers |
registration.procrustes_from_offsets |
| voxelize |
voxels.voxelize_mesh, voxelize_points |
| Differential geometry |
|
| cotangent Laplacian and mass matrix |
laplacian.cotmatrix, laplacian.mass_matrix |
| solve a constrained quadratic (harmonic, biharmonic fields) |
linalg.min_quad_with_fixed |
| geodesic distance |
heat.heat_geodesic (approximate, fast), heat.fast_marching_distance (first-order front, no solve), geodesic_walk.geodesic_path |
| flatten to the plane (UV parametrization) |
parametrization: harmonic, lscm, arap, slim (least symmetric Dirichlet distortion from a start, fold-free), low_distortion_parametrization (free boundary, no pins, any topology), arap_parametrization (the same from a classic map, any surface with a boundary), slim_parametrization (the whole unwrap to the least symmetric Dirichlet distortion, from the free chart or a classic map; fold-free on a disk) |
| bake or sample textures |
texture |
| which face covers each pixel of a UV window (visibility buffer) |
texture.rasterize_face_indices |
| Arrays |
|
NumPy-like unique, sort, isin, searchsorted-style helpers |
grouping, array |
reductions (min, max, sum, mean) without a host round trip |
reduce |
per-group sums (bincount with weights, add.reduceat), reproducible under the deterministic setting |
reduce.scatter_sum, reduce.segment_sum |
per-group means, minima and maxima (minimum.at, maximum.reduceat) |
reduce.scatter_mean, scatter_min, scatter_max, segment_mean, segment_min, segment_max |
| Deploy |
|
| compile every kernel ahead of time for a container image or CI (no GPU needed) |
precompile: python -m ordito.precompile --arch 86,89, precompile.precompile |