trimesh.exchange.dae module

trimesh.exchange.dae.export_collada(mesh, **kwargs)

Export a mesh or a list of meshes as a COLLADA .dae file.

Parameters:

mesh (Trimesh object or list of Trimesh objects) – The mesh(es) to export.

Returns:

export

Return type:

str, string of COLLADA format output

trimesh.exchange.dae.load_collada(file_obj, resolver=None, ignore_broken=True, **kwargs)

Load a COLLADA (.dae) file into a list of trimesh kwargs.

Parameters:
  • file_obj (file object) – Containing a COLLADA file

  • resolver (trimesh.visual.Resolver or None) – For loading referenced files, like texture images

  • ignore_broken (bool) –

    Ignores broken references during loading:
    [collada.common.DaeUnsupportedError,

    collada.common.DaeBrokenRefError]

  • kwargs – Passed to trimesh.Trimesh.__init__

Returns:

loaded – kwargs for Trimesh constructor

Return type:

list of dict

trimesh.exchange.dae.load_zae(file_obj, resolver=None, **kwargs)

Load a ZAE file, which is just a zipped DAE file.

Parameters:
  • file_obj (file object) – Contains ZAE data

  • resolver (trimesh.visual.Resolver) – Resolver to load additional assets

  • kwargs (dict) – Passed to load_collada

Returns:

loaded – Results of loading

Return type:

dict