py3dtiles.utils module
- class py3dtiles.utils.CommandType(value)[source]
Bases:
Enum
An enumeration.
- PROCESS_JOBS = b'process_jobs'
- READ_FILE = b'read_file'
- SHUTDOWN = b'shutdown'
- WRITE_PNTS = b'write_pnts'
- class py3dtiles.utils.OctreeMetadata(aabb, spacing, scale)[source]
Bases:
NamedTuple
- class py3dtiles.utils.ResponseType(value)[source]
Bases:
Enum
An enumeration.
- ERROR = b'error'
- HALTED = b'halted'
- IDLE = b'idle'
- NEW_TASK = b'new_task'
- PNTS_WRITTEN = b'pnts_written'
- PROCESSED = b'processed'
- READ = b'read'
- class py3dtiles.utils.SubdivisionType(value)[source]
Bases:
Enum
An enumeration.
- OCTREE = 1
- QUADTREE = 2
- py3dtiles.utils.aabb_size_to_subdivision_type(size: ndarray[Any, dtype[floating[_T]]]) SubdivisionType [source]
- py3dtiles.utils.make_aabb_cubic(aabb: ndarray[Any, dtype[floating[_T]]]) ndarray[Any, dtype[floating[_T]]] [source]
- py3dtiles.utils.make_aabb_valid(aabb: list[list[float]]) None [source]
Modify inplace the aabb so that no dimension is 0-sized
- py3dtiles.utils.node_from_name(name: bytes, parent_aabb: npt.NDArray[np.floating[_T]], parent_spacing: float) Node [source]
- py3dtiles.utils.node_name_to_path(working_dir: Path, name: bytes, suffix: str = '', split_len: int = 8) Path [source]
Get the path of a tile from its name and the working directory. If the name is ‘222262175’ with the suffix ‘.pnts’, the result is ‘working_dir/22226217/r5.pnts’