py3dtiles.tilers.b3dm.wkb_utils module
- class py3dtiles.tilers.b3dm.wkb_utils.TriangleSoup[source]
Bases:
object
- compute_normals() ndarray[Any, dtype[float32]] [source]
Compute vertex normals and returns them as a numpy array.
- 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.
- get_bbox() list[ndarray[Any, dtype[float32]]] [source]
Returns the bbox in this format: [[minX, minY, minZ],[maxX, maxY, maxZ]]
- 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