py3dtiles.wkb_utils module

class py3dtiles.wkb_utils.TriangleSoup[source]

Bases: object

static from_wkb_multipolygon(wkb, associatedData=[])[source]

Parameters

wkbstring

Well-Known Binary binary string describing a multipolygon

associatedDataarray

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

Returns

ts : TriangleSoup

getBbox()[source]

Parameters

Returns

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

getDataArray(index)[source]

Parameters

index: int

The index of the associated data

Returns

Binary array of vertice data

getNormalArray()[source]

Parameters

Returns

Binary array of vertice normals

getPositionArray()[source]

Parameters

Returns

Binary array of vertice positions

py3dtiles.wkb_utils.faceAttributeToArray(triangles)[source]
py3dtiles.wkb_utils.parse(wkb)[source]
py3dtiles.wkb_utils.triangulate(polygon, additionalPolygons=[])[source]

Triangulates 3D polygons

py3dtiles.wkb_utils.unflatten(array, lengths, index)[source]
py3dtiles.wkb_utils.vertexAttributeToArray(triangles)[source]