scene_synthesizer.utils.normalize_and_bake_scale

scene_synthesizer.utils.normalize_and_bake_scale(trimesh_scene)

Takes a trimesh scene and bakes all scale information contained in the transform tree into the vertices of all meshes. The resulting tree transforms will all have scale 1.

Parameters:

trimesh_scene (trimesh.Scene) – A trimesh scene object.

Returns:

The transformed scene (or same if scene transform tree doesn’t change scale).

Return type:

trimesh.Scene