py3dtiles.tileset.content.gltf module

class py3dtiles.tileset.content.gltf.GlTF[source]

Bases: object

CHUNK_HEADER_LENGTH = 8
HEADER_LENGTH = 12
static from_array(array: ndarray[Any, dtype[uint8]]) GlTF[source]
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

to_array() ndarray[Any, dtype[uint8]][source]
py3dtiles.tileset.content.gltf.compute_binary(bin_vertices, bin_normals, bin_ids, bin_uvs)[source]
py3dtiles.tileset.content.gltf.compute_header(bin_vertices, n_vertices, bb, transform, textured, batched, batch_length, uri, texture_uri)[source]