pub struct PointCloudBuilder { /* private fields */ }Expand description
Builds point clouds field-by-field.
Implementations§
Source§impl PointCloudBuilder
impl PointCloudBuilder
Sourcepub fn new(schema: PointSchema) -> Self
pub fn new(schema: PointSchema) -> Self
Creates a builder from a schema.
Sourcepub fn metadata(self, metadata: SpatialMetadata) -> Self
pub fn metadata(self, metadata: SpatialMetadata) -> Self
Sets spatial metadata.
Sourcepub fn push_point<I>(&mut self, values: I) -> SpatialResult<()>where
I: IntoIterator<Item = f32>,
pub fn push_point<I>(&mut self, values: I) -> SpatialResult<()>where
I: IntoIterator<Item = f32>,
Appends one point by field values in schema order.
Each field value must be a scalar convertible to the field dtype.
Sourcepub fn build(self) -> SpatialResult<PointCloud>
pub fn build(self) -> SpatialResult<PointCloud>
Builds the final point cloud.
Trait Implementations§
Source§impl Clone for PointCloudBuilder
impl Clone for PointCloudBuilder
Source§fn clone(&self) -> PointCloudBuilder
fn clone(&self) -> PointCloudBuilder
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 PointCloudBuilder
impl Debug for PointCloudBuilder
Source§impl Default for PointCloudBuilder
impl Default for PointCloudBuilder
Source§fn default() -> PointCloudBuilder
fn default() -> PointCloudBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PointCloudBuilder
impl RefUnwindSafe for PointCloudBuilder
impl Send for PointCloudBuilder
impl Sync for PointCloudBuilder
impl Unpin for PointCloudBuilder
impl UnsafeUnpin for PointCloudBuilder
impl UnwindSafe for PointCloudBuilder
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