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: list[dict[str, Sequence[Any]]], transform: ndarray[Any, dtype[float64]], batched: bool = True, uri: str | None = None, texture_uri: str | None = None) GlTF [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