Skip to content

Commit

Permalink
Merge pull request #1516 from clemense/ce/scene_to_dict_metadata
Browse files Browse the repository at this point in the history
Add metadata to scene_to_dict
  • Loading branch information
mikedh committed Mar 16, 2022
2 parents 32f1383 + 9ad1e34 commit 545462c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trimesh/exchange/export.py
Expand Up @@ -163,6 +163,7 @@ def scene_to_dict(scene, use_base64=False):
# save some basic data about the scene
export = {'graph': scene.graph.to_edgelist(),
'geometry': {},
'metadata': scene.metadata.copy(),
'scene_cache': {'bounds': scene.bounds.tolist(),
'extents': scene.extents.tolist(),
'centroid': scene.centroid.tolist(),
Expand Down

0 comments on commit 545462c

Please sign in to comment.