py3dtiles.tileset.extension package

class py3dtiles.tileset.extension.BaseExtension(name: str)[source]

Bases: ABC

A base class to manage 3dtiles extension.

If an extension is added somewhere in a tileset, the user must add the name of the extension in the attribute extensions_used of the class TileSet. Also, if the support of an extension is necessary to display the tileset, the name must be added in the attribute extensions_required of the class TileSet.

abstract classmethod from_dict(extension_dict: Dict[str, Any]) BaseExtension[source]
abstract to_dict() Dict[str, Any][source]
class py3dtiles.tileset.extension.BatchTableHierarchy[source]

Bases: BaseExtension

Batch Table Hierarchy (BTH) is a BaseExtension of a Batch Table.

add_class(class_name: str, property_names: list[str]) HierarchyClass[source]
classmethod from_dict(extension_dict: Dict[str, Any]) BatchTableHierarchy[source]
get_instance_parent_indexes(instance: HierarchyInstance) list[int][source]
to_dict() Dict[str, Any][source]

Submodules