GLTF

class compas.files.GLTF(filepath=None)[source]

Bases: object

Class for working with files in glTF format.

Caution: Extensions and most other application specific data are unsupported, and their data may be lost upon import.

Attributes

References

1

https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/figures/gltfOverview-2.0.0b.png

Methods

export

Export the content of this GLTF to the location compas.files.GLTF.filepath, with file format determined by the given extension.

read

Read the glTF located at compas.files.GLTF.filepath and load its content.