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)[source]

Parameters

array : numpy.array

Returns

glTF : GlTf

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

to_array()[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]