An exporter for *Collada*.
Collada is a file format for robust representation of scenes, materials, animations, and other 3D content in an xml format. This exporter only supports exporting geometry, materials, textures, and scene hierarchy.
// Instantiate an exporter const exporter = new ColladaExporter(); // Parse the input and generate the ply output const data = exporter.parse( scene, null, options ); downloadFile( data );
Creates a new [name].
[page:Object input] — Object3D to be exported
[page:Function onCompleted] — Will be called when the export completes. Optional. The same data is immediately returned from the function.
[page:Options options] — Export options
Generates an object with Collada file and texture data. This object is returned from the function and passed into the "onCompleted" callback.
// Collada file content
// List of referenced texures
// File directory, name, and extension of the texture data
// The texture data and original texture object