py3dtiles.tilers.point.node.node module#

class py3dtiles.tilers.point.node.node.DummyNode(_bytes: DummyNodeDictType)[source]#

Bases: object

get_points() Points | None[source]#
class py3dtiles.tilers.point.node.node.DummyNodeDictType[source]#

Bases: TypedDict

children: NotRequired[list[bytes]]#
grid: NotRequired[Grid]#
points: NotRequired[list[Points]]#
class py3dtiles.tilers.point.node.node.Node(name: bytes, aabb: ndarray[Any, dtype[float64 | float32]], spacing: float, include_rgb: bool, extra_fields: list[ExtraFieldsDescription])[source]#

Bases: object

docstring for Node

aabb#
aabb_center#
aabb_size#
children: list[bytes] | None#
static create_child_node_from_parent(name: bytes, parent_aabb: npt.NDArray[np.floating[_T]], parent_spacing: float, include_rgb: bool, extra_fields: list[ExtraFieldsDescription]) Node[source]#
dirty#
dump_pending_points() list[tuple[bytes, bytes, int]][source]#
extra_fields#
flush_pending_points(catalog: NodeCatalog, scale: float) None[source]#
get_child_names() Generator[bytes, None, None][source]#
get_pending_points_count() int[source]#
get_point_count(node_catalog: NodeCatalog, max_depth: int, depth: int = 0) int[source]#
get_points() Points | None[source]#
grid#
include_rgb#
insert(scale: float, points: Points, make_empty_node: bool = False) None[source]#
inv_aabb_size#
load_from_bytes(byt: bytes) None[source]#
name#
needs_balance() bool[source]#
pending_points: list[Points]#
points: list[Points]#
save_to_bytes() bytes[source]#
spacing#
to_tileset(folder: Path, scale: ndarray[Any, dtype[float32]], parent_node: Node | None = None, depth: int = 0, pool_executor: ProcessPoolExecutor | None = None) Tile | None[source]#
py3dtiles.tilers.point.node.node.node_to_tileset(args: tuple[Node, Path, ndarray[Any, dtype[float32]], Node | None, int]) Tile | None[source]#
py3dtiles.tilers.point.node.node.split_tileset(tile: Tile, split_name: str, folder: Path) Tile[source]#