py3dtiles.tileset.content.feature_table module
- class py3dtiles.tileset.content.feature_table.FeatureTable[source]
Bases:
object
- static from_array(th: PntsHeader, array: npt.NDArray[np.uint8]) FeatureTable [source]
- static from_features(feature_table_header: FeatureTableHeader, position_array: ndarray[Any, dtype[float32 | uint8]], color_array: ndarray[Any, dtype[uint8 | uint16]] | None = None, normal_position: ndarray[Any, dtype[float32 | uint8]] | None = None) FeatureTable [source]
- class py3dtiles.tileset.content.feature_table.FeatureTableBody[source]
Bases:
object
- classmethod from_array(feature_table_header: FeatureTableHeader, array: ndarray[Any, dtype[uint8]]) FeatureTableBody [source]
- class py3dtiles.tileset.content.feature_table.FeatureTableHeader[source]
Bases:
object
- static from_array(array: ndarray[Any, dtype[uint8]]) FeatureTableHeader [source]
- static from_semantic(position_semantic: Literal[SemanticPoint.POSITION, SemanticPoint.POSITION_QUANTIZED], color_semantic: Literal[SemanticPoint.RGB, SemanticPoint.RGBA, SemanticPoint.RGB565] | None, normal_semantic: Literal[SemanticPoint.NORMAL, SemanticPoint.NORMAL_OCT16P] | None, nb_points: int, quantized_volume_offset: ndarray[Any, dtype[float32]] | None = None, quantized_volume_scale: ndarray[Any, dtype[float32]] | None = None, constant_rgba: ndarray[Any, dtype[uint8]] | None = None) FeatureTableHeader [source]
- class py3dtiles.tileset.content.feature_table.SemanticCategory(value)[source]
Bases:
Enum
An enumeration.
- BATCH = 4
- COLOR = 2
- NONE = 0
- NORMAL = 3
- POSITION = 1
- class py3dtiles.tileset.content.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
- py3dtiles.tileset.content.feature_table.check_array_size(array: ndarray[Any, dtype[float32 | uint16 | uint8]], semantic: SemanticPoint, nb_points: int) None [source]
This function checks if the size of the given array is correct according semantic and nb_points. If not, it raises an InvalidPntsError exception.
- py3dtiles.tileset.content.feature_table.check_semantic_type(semantic: SemanticPoint, category: SemanticCategory) None [source]
This function checks if the category of the semantic is the same as the parameter category. If not, it raises an InvalidPntsError exception.