py3dtiles.tileset.content.gltf module
- class py3dtiles.tileset.content.gltf.GlTF[source]
Bases:
object
- CHUNK_HEADER_LENGTH = 8
- HEADER_LENGTH = 12
- static from_binary_arrays(arrays, transform, batched=True, uri=None, texture_uri=None)[source]
Parameters
- arraysarray of dictionaries
Each dictionary has the data for one geometry arrays[‘position’]: binary array of vertex positions arrays[‘normal’]: binary array of vertex normals arrays[‘uv’]: binary array of vertex texture coordinates
(Not implemented yet)
arrays[‘bbox’]: geometry bounding box (numpy.array)
- transformnumpy.array
World coordinates transformation flattend matrix
Returns
glTF : GlTF