py3dtiles.tileset.content.pnts module

class py3dtiles.tileset.content.pnts.Pnts[source]

Bases: TileContent

static from_array(array: ndarray[Any, dtype[_ScalarType_co]]) Pnts[source]

Creates a Pnts from an array

static from_features(pd_type: dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any], cd_type: dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any], features: list[Feature]) Pnts[source]

Creates a Pnts from features defined by pd_type and cd_type.

class py3dtiles.tileset.content.pnts.PntsBody[source]

Bases: TileContentBody

static from_array(header: PntsHeader, array: ndarray[Any, dtype[_ScalarType_co]]) PntsBody[source]

Creates a PntsBody from an array and the header

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

Returns the body as a numpy array.

class py3dtiles.tileset.content.pnts.PntsHeader[source]

Bases: TileContentHeader

BYTE_LENGTH = 28
static from_array(array: ndarray[Any, dtype[_ScalarType_co]]) PntsHeader[source]

Create a PntsHeader from an array

sync(body: PntsBody) None[source]

Synchronizes headers with the Pnts body.

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

Returns the header as a numpy array.