scene_synthesizer.utils.add_filename_to_trimesh_metadata
- scene_synthesizer.utils.add_filename_to_trimesh_metadata(mesh_or_scene, fname, file_element=None)
Add file_path and file_name properties to trimesh scene or individual mesh.
- Parameters:
mesh_or_scene (trimesh.Trimesh or trimesh.scene.Scene) – The geometry or a scene, i.e., collection of geometries.
fname (str) – The original source filename of the geometry that will be added to the metadata.
file_element (str or int, optional) – The specific part of the source file, e.g. an integer for an OBJ with multiple parts. Or a prim path for a USD. Defaults to None.