load_or_process_mesh
data_handling.load_or_process_mesh(mesh, spec, paths, *, console=None)
Crop/simplify a mesh once and persist the result on disk.
Parameters
| mesh |
trimesh.Trimesh |
Raw scene mesh. |
required |
| spec |
MeshProcessSpec |
Processing specification (bounds, simplification, etc.). |
required |
| paths |
PathConfig |
PathConfig providing the processed-mesh directory. |
required |
| console |
Console | None |
Optional logger. |
None |
Returns
|
ProcessedMesh |
ProcessedMesh with trimesh object, bounds, torch tensors, and cache flag. |