pub struct CopcNodeReader { /* private fields */ }Expand description
Bounded per-node COPC reader.
Opens a COPC file once, loads the full hierarchy (metadata only), and
exposes one PointCloud per node on demand. Nodes are returned in
deterministic (level, x, y, z) order so the hierarchy can be turned
into a tile set without materializing the whole cloud.
Implementations§
Source§impl CopcNodeReader
impl CopcNodeReader
Sourcepub fn open(path: impl AsRef<Path>) -> Result<Self, IoError>
pub fn open(path: impl AsRef<Path>) -> Result<Self, IoError>
Opens a local COPC file and loads its hierarchy eagerly.
Sourcepub fn root_bounds(&self) -> CopcBounds
pub fn root_bounds(&self) -> CopcBounds
Root octree bounds.
Sourcepub fn read_node(&mut self, index: usize) -> Result<PointCloud, IoError>
pub fn read_node(&mut self, index: usize) -> Result<PointCloud, IoError>
Reads the points of one node by index into Self::nodes.
Auto Trait Implementations§
impl !Freeze for CopcNodeReader
impl RefUnwindSafe for CopcNodeReader
impl Send for CopcNodeReader
impl Sync for CopcNodeReader
impl Unpin for CopcNodeReader
impl UnsafeUnpin for CopcNodeReader
impl UnwindSafe for CopcNodeReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more