py3dtiles.feature_table module

class py3dtiles.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.feature_table.FeatureTable[source]

Bases: object

feature(n)[source]
static from_array(th, array)[source]

Parameters

th : TileHeader

array : numpy.array

Returns

ft : FeatureTable

static from_features(pdtype, cdtype, features)[source]
pdtypenumpy.dtype

Numpy description for positions.

cdtypenumpy.dtype

Numpy description for colors.

features : Feature[]

Returns

ft : FeatureTable

npoints()[source]
to_array()[source]
class py3dtiles.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, features)[source]
positions(n)[source]
to_array()[source]
class py3dtiles.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, npoints)[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.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