py3dtiles.tilers.b3dm.wkb_utils module
- class py3dtiles.tilers.b3dm.wkb_utils.TriangleSoup[source]
Bases:
object
- static from_wkb_multipolygon(wkb: bytes, associated_data: list[bytes] | None = None) TriangleSoup [source]
- Parameters:
wkb – Well-Known Binary binary string describing a multipolygon
associated_data – array of multipolygons containing data attached to the wkb parameter multipolygon. Must be the same size as wkb.
- py3dtiles.tilers.b3dm.wkb_utils.face_attribute_to_array(triangles: list[ndarray[Any, dtype[float32]]]) list[ndarray[Any, dtype[float32]]] [source]
- py3dtiles.tilers.b3dm.wkb_utils.parse(wkb: bytes) List[List[List[ndarray[Any, dtype[float32]]]]] [source]
- py3dtiles.tilers.b3dm.wkb_utils.triangulate(polygon: List[List[ndarray[Any, dtype[float32]]]], additional_polygons: list[List[List[ndarray[Any, dtype[float32]]]]] | None = None) list[List[ndarray[Any, dtype[float32]]]] [source]
Triangulates 3D polygons