pub struct PointCloud { /* private fields */ }Expand description
Schema-aware columnar point cloud stored on a device.
Implementations§
Source§impl PointCloud
impl PointCloud
Sourcepub fn with_schema(schema: PointSchema) -> Self
pub fn with_schema(schema: PointSchema) -> Self
Creates an empty point cloud with the given schema.
Sourcepub fn schema(&self) -> &PointSchema
pub fn schema(&self) -> &PointSchema
Returns the point cloud schema.
Sourcepub fn metadata(&self) -> &SpatialMetadata
pub fn metadata(&self) -> &SpatialMetadata
Returns spatial metadata.
Sourcepub fn field(&self, name: &str) -> SpatialResult<&PointBuffer>
pub fn field(&self, name: &str) -> SpatialResult<&PointBuffer>
Returns read-only access to a field buffer by name.
Sourcepub fn validate(&self) -> SpatialResult<()>
pub fn validate(&self) -> SpatialResult<()>
Validates schema and buffer consistency.
Sourcepub fn try_from_parts(
schema: PointSchema,
buffers: PointBufferSet,
metadata: SpatialMetadata,
) -> SpatialResult<Self>
pub fn try_from_parts( schema: PointSchema, buffers: PointBufferSet, metadata: SpatialMetadata, ) -> SpatialResult<Self>
Constructs a point cloud from schema, column buffers, and metadata.
Trait Implementations§
Source§impl Clone for PointCloud
impl Clone for PointCloud
Source§fn clone(&self) -> PointCloud
fn clone(&self) -> PointCloud
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointCloud
impl Debug for PointCloud
Source§impl HasIntensity for PointCloud
impl HasIntensity for PointCloud
Source§fn intensity(&self) -> SpatialResult<&[f32]>
fn intensity(&self) -> SpatialResult<&[f32]>
Returns the intensity column as an
f32 slice.Source§impl HasNormals3 for PointCloud
impl HasNormals3 for PointCloud
Source§impl HasPositions3 for PointCloud
impl HasPositions3 for PointCloud
Source§fn positions3(&self) -> SpatialResult<(&[f32], &[f32], &[f32])>
fn positions3(&self) -> SpatialResult<(&[f32], &[f32], &[f32])>
Returns x/y/z columns as
f32 slices.Source§impl PartialEq for PointCloud
impl PartialEq for PointCloud
impl StructuralPartialEq for PointCloud
Auto Trait Implementations§
impl Freeze for PointCloud
impl RefUnwindSafe for PointCloud
impl Send for PointCloud
impl Sync for PointCloud
impl Unpin for PointCloud
impl UnsafeUnpin for PointCloud
impl UnwindSafe for PointCloud
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