scene_synthesizer.exchange.export.export_dict

scene_synthesizer.exchange.export.export_dict(scene, use_base64=False, include_metadata=True)

Export a scene to a dictionary.

This uses trimesh.exchange.export.scene_to_dict

Parameters:
  • scene (scene_synthesizer.Scene) – Scene to be exported.

  • use_base64 (bool, optional) – Encode arrays with base64 or not. Defaults to False.

  • include_metadata (bool, optional) – Whether to include scene metadata. Defaults to True.

Returns:

Scene as dictionary.

Return type:

dict