scene_synthesizer.utils.center_mass
- scene_synthesizer.utils.center_mass(trimesh_scene, node_names)
Return the center of mass of a selection of nodes in a scene.
- Parameters:
trimesh_scene (trimesh.Scene) – A scene.
node_names (list[str]) – A list of node names.
- Returns:
3D vector describing the center of mass.
- Return type:
np.ndarray