GLTF
-
class
compas.files.GLTF(filepath=None)[source] Bases:
objectRead and create files in glTF format. Caution: Extensions and most other application specific data are unsupported, and their data may be lost upon import.
- Attributes
filepath (str) – Path to the location of the glTF file.
content (
compas.files.GLTFContent)reader (
compas.files.GLTFReader)parser (
compas.files.GLTFParser)exporter (
compas.files.GLTFExporter)
References
- 1
https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/figures/gltfOverview-2.0.0b.png
Methods
__init__([filepath])Initialize self.
export([embed_data])Export the content of this
compas.files.GLTFto the locationcompas.files.GLTF.filepath, with file format determined by the given extension.read()Read the glTF located at
compas.files.GLTF.filepathand load its content.