py3dtiles.gltf module

class py3dtiles.gltf.GlTF[source]

Bases: object

static from_array(array)[source]

Parameters

array : numpy.array

Returns

glTF : GlTf

static from_binary_arrays(arrays, transform, binary=True, batched=True, uri=None, textureUri=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.gltf.compute_binary(binVertices, binNormals, binIds, binUvs)[source]
py3dtiles.gltf.compute_header(binVertices, nVertices, bb, transform, textured, batched, batchLength, uri, textureUri)[source]