py3dtiles.tileset.tile module
- class py3dtiles.tileset.tile.Tile(geometric_error: float = 500, bounding_volume: BoundingVolume | None = None, refine_mode: Literal['ADD', 'REPLACE'] = 'ADD')[source]
Bases:
Extendable
- get_children() list[Tile] [source]
- Returns:
the recursive (across the children tree) list of the children tiles
- get_content() TileContent | None [source]
- set_content(content: TileContent, force: bool = True) None [source]
- to_dict() TileDictType [source]
- write_content(directory: Path) None [source]
Write (or overwrite) the tile _content_ to the directory specified as parameter and withing the relative filename designated by the tile’s content uri. Note that it is the responsibility of the owning TileSet to - set those uris - to explicitly invoke write_content() (this is to be opposed with the Tile attributes which get serialized when recursing on the TileSet attributes) :param directory: the target directory