py3dtiles.tileset.content.batch_table module

class py3dtiles.tileset.content.batch_table.BatchTable[source]

Bases: object

Only the JSON header has been implemented for now. According to the batch table documentation, the binary body is useful for storing long arrays of data (better performances)

add_property_as_binary(property_name: str, array: ndarray[Any, dtype[int8 | uint8 | int16 | uint16 | int32 | uint32 | float32 | float64]], component_type: Literal['BYTE', 'UNSIGNED_BYTE', 'SHORT', 'UNSIGNED_SHORT', 'INT', 'UNSIGNED_INT', 'FLOAT', 'DOUBLE'], property_type: Literal['SCALAR', 'VEC2', 'VEC3', 'VEC4']) None[source]
add_property_as_json(property_name: str, array: list[Any]) None[source]
static from_array(tile_header: TileContentHeader, array: npt.NDArray[np.uint8], batch_len: int | None = None) BatchTable[source]
get_binary_property(property_name_to_fetch: str) ndarray[Any, dtype[int8 | uint8 | int16 | uint16 | int32 | uint32 | float32 | float64]][source]
to_array() ndarray[Any, dtype[uint8]][source]
class py3dtiles.tileset.content.batch_table.BatchTableBody(data: list[ndarray[Any, dtype[int8 | uint8 | int16 | uint16 | int32 | uint32 | float32 | float64]]] | None = None)[source]

Bases: object

property nbytes: int
to_array() ndarray[Any, dtype[uint8]][source]
class py3dtiles.tileset.content.batch_table.BatchTableHeader(data: Dict[str, List[Any] | Dict[str, Any]] | None = None)[source]

Bases: object

to_array() ndarray[Any, dtype[uint8]][source]