py3dtiles.tilers.b3dm.wkb_utils module

class py3dtiles.tilers.b3dm.wkb_utils.TriangleSoup[source]

Bases: object

static from_wkb_multipolygon(wkb, associated_data=None)[source]

Parameters

wkbstring

Well-Known Binary binary string describing a multipolygon

associated_dataarray

array of multipolygons containing data attached to the wkb parameter multipolygon. Must be the same size as wkb.

Returns

ts : TriangleSoup

get_bbox()[source]

Parameters

Returns

Array [[minX, minY, minZ],[maxX, maxY, maxZ]]

get_data_array(index)[source]

Parameters

index: int

The index of the associated data

Returns

Binary array of vertex data

get_normal_array()[source]

Parameters

Returns

Binary array of vertice normals

get_position_array()[source]

Parameters

Returns

Binary array of vertex positions

py3dtiles.tilers.b3dm.wkb_utils.face_attribute_to_array(triangles)[source]
py3dtiles.tilers.b3dm.wkb_utils.parse(wkb)[source]
py3dtiles.tilers.b3dm.wkb_utils.triangulate(polygon, additional_polygons=None)[source]

Triangulates 3D polygons

py3dtiles.tilers.b3dm.wkb_utils.unflatten(array, lengths, index)[source]
py3dtiles.tilers.b3dm.wkb_utils.vertex_attribute_to_array(triangles)[source]