py3dtiles.tileset.feature_table module

class py3dtiles.tileset.feature_table.Feature[source]

Bases: object

static from_array(positions_dtype, positions, colors_dtype=None, colors=None)[source]

Parameters

positions_dtype : numpy.dtype

positionsnumpy.array

Array of uint8.

colors_dtype : numpy.dtype

colorsnumpy.array

Array of uint8.

Returns

f : Feature

static from_values(x, y, z, red=None, green=None, blue=None)[source]
to_array()[source]
class py3dtiles.tileset.feature_table.FeatureTable[source]

Bases: object

feature(n)[source]
static from_array(th: TileContentHeader, array: ndarray) FeatureTable[source]
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]) FeatureTable[source]

pdtype : Numpy description for positions. cdtype : Numpy description for colors.

nb_points()[source]
to_array()[source]
class py3dtiles.tileset.feature_table.FeatureTableBody[source]

Bases: object

colors(n)[source]
static from_array(fth, array)[source]

Parameters

header : FeatureTableHeader

array : numpy.array

Returns

ftb : FeatureTableBody

static from_features(fth: FeatureTableHeader, features: List[Feature]) FeatureTableBody[source]
positions(n)[source]
to_array()[source]
class py3dtiles.tileset.feature_table.FeatureTableHeader[source]

Bases: object

static from_array(array)[source]

Parameters

arraynumpy.array

Json in 3D Tiles format. See py3dtiles/doc/semantics.json for an example.

Returns

fth : FeatureTableHeader

static from_dtype(positions_dtype, colors_dtype, nb_points)[source]

Parameters

positions_dtypenumpy.dtype

Numpy description of a positions.

colors_dtypenumpy.dtype

Numpy description of a colors.

Returns

fth : FeatureTableHeader

to_array()[source]
to_json()[source]
class py3dtiles.tileset.feature_table.SemanticPoint(value)[source]

Bases: Enum

An enumeration.

BATCH_ID = 8
NONE = 0
NORMAL = 6
NORMAL_OCT16P = 7
POSITION = 1
POSITION_QUANTIZED = 2
RGB = 4
RGB565 = 5
RGBA = 3