Skip to content

PointCloud

Summary

3D point cloud data container.

Methods

get_n_points

Signature: get_n_points() -> int

Return number of points.

get_rgb

Signature: get_rgb(idx: int) -> Point3

Return RGB color at index.

get_xyz

Signature: get_xyz(idx: int) -> Point3

Return point coordinates at index.

has_rgb

Signature: has_rgb() -> bool

Return whether RGB data is available.

load_from_disk

Signature: load_from_disk(file_path: str) -> bool

Load point cloud from disk.

subset

Signature: subset(indices: collections.abc.Sequence[int]) -> PointCloud

Return sub-cloud containing selected indices.