scene_synthesizer.exchange.export.export_gltf

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

Export a scene object as a GLTF directory.

This puts each mesh into a separate file (i.e. a buffer) as opposed to one larger file.

This uses trimesh.exchange.gltf.export_gltf

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

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

  • **merge_buffers (bool) – Whether to merge buffers into one blob. Defaults to False.

  • **resolver (trimesh.resolvers.Resolver) – If passed will use to write each file.

  • **tree_postprocesser (None or callable) – Run this on the header tree before exiting. Defaults to None.

  • **embed_buffers (bool) – Embed the buffer into JSON file as a base64 string in the URI. Defaults to False.

Returns:

Format: {file name : file data}

Return type:

dict