scene_synthesizer.exchange.export.export_glb

scene_synthesizer.exchange.export.export_glb(scene, **kwargs)

Export a scene as a binary GLTF (GLB 2.0) file.

This uses trimesh.exchange.gltf.export_glb

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

  • **extras (JSON serializable) – Will be stored in the extras field.

  • **include_normals (bool) – Whether to include vertex normals in output file. Defaults to None.

  • **unitize_normals (bool) – Whether to unitize normals. Defaults to False.

  • **tree_postprocessor (func) – Custom function to (in-place) post-process the tree before exporting.

  • **buffer_postprocessor (func) – Custom function to (in-place) post-process the buffer before exporting.

Returns:

Exported result in GLB 2.0

Return type:

bytes