pub struct PointCloud3D<P>where
P: Is3D,{
pub data: Vec<P>,
}
Expand description
PointCloud3D, a collection of positions within 3D space
Fields§
§data: Vec<P>
Implementations§
Source§impl<P> PointCloud3D<P>where
P: Is3D,
impl<P> PointCloud3D<P>where
P: Is3D,
Sourcepub fn new() -> PointCloud3D<P>
pub fn new() -> PointCloud3D<P>
Creates a new, empty point cloud
Sourcepub fn with_capacity(n: usize) -> PointCloud3D<P>
pub fn with_capacity(n: usize) -> PointCloud3D<P>
Creates a new, empty point cloud with capacity
Sourcepub fn for_each_point<F>(&mut self, f: F)
pub fn for_each_point<F>(&mut self, f: F)
Applies a function to each position
Sourcepub fn reserve_vertices(&mut self, n: usize)
pub fn reserve_vertices(&mut self, n: usize)
Reserves number of vertices
Source§impl<P> PointCloud3D<P>where
P: IsBuildable3D + Clone,
impl<P> PointCloud3D<P>where
P: IsBuildable3D + Clone,
Sourcepub fn parse(text: &str) -> Result<PointCloud3D<P>>
pub fn parse(text: &str) -> Result<PointCloud3D<P>>
Creates a new point cloud from an input string
Sourcepub fn append_ra<RA>(&mut self, ra: &RA)where
RA: IsRandomAccessible<P>,
pub fn append_ra<RA>(&mut self, ra: &RA)where
RA: IsRandomAccessible<P>,
Appends all elements of an IsRandomAccessible
Trait Implementations§
Source§impl<P> Clone for PointCloud3D<P>
impl<P> Clone for PointCloud3D<P>
Source§fn clone(&self) -> PointCloud3D<P>
fn clone(&self) -> PointCloud3D<P>
Returns a copy 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<P> Debug for PointCloud3D<P>
impl<P> Debug for PointCloud3D<P>
Source§impl<P> Default for PointCloud3D<P>where
P: Is3D,
impl<P> Default for PointCloud3D<P>where
P: Is3D,
Source§impl<P> Display for PointCloud3D<P>
impl<P> Display for PointCloud3D<P>
Source§impl<P> From<PointCloud3D<P>> for Polygon3D<P>where
P: Is3D,
impl<P> From<PointCloud3D<P>> for Polygon3D<P>where
P: Is3D,
Source§fn from(pc: PointCloud3D<P>) -> Self
fn from(pc: PointCloud3D<P>) -> Self
Converts to this type from the input type.
Source§impl<P> HasBoundingBox3DMaybe for PointCloud3D<P>where
P: Is3D,
impl<P> HasBoundingBox3DMaybe for PointCloud3D<P>where
P: Is3D,
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
Should return the bounding box if it can be calculated
Source§impl<P> HasCenterOfGravity3D for PointCloud3D<P>where
P: Is3D,
impl<P> HasCenterOfGravity3D for PointCloud3D<P>where
P: Is3D,
Source§fn center_of_gravity(&self) -> Result<Point3D>
fn center_of_gravity(&self) -> Result<Point3D>
Should return the center of gravity
Source§impl<P> HasLength for PointCloud3D<P>where
P: Is3D,
impl<P> HasLength for PointCloud3D<P>where
P: Is3D,
Source§impl<P> Hash for PointCloud3D<P>
impl<P> Hash for PointCloud3D<P>
Source§impl<P> IsDataContainer<P> for PointCloud3D<P>where
P: IsBuildable3D + Clone,
impl<P> IsDataContainer<P> for PointCloud3D<P>where
P: IsBuildable3D + Clone,
Source§impl<P> IsMatrix4Transformable for PointCloud3D<P>
impl<P> IsMatrix4Transformable for PointCloud3D<P>
Source§impl<P> IsMergeable for PointCloud3D<P>
impl<P> IsMergeable for PointCloud3D<P>
Source§impl<P> IsMovable3D for PointCloud3D<P>where
P: Is3D + IsMovable3D,
impl<P> IsMovable3D for PointCloud3D<P>where
P: Is3D + IsMovable3D,
Source§impl<P> IsPushable<P> for PointCloud3D<P>where
P: Is3D,
impl<P> IsPushable<P> for PointCloud3D<P>where
P: Is3D,
Source§impl<P> IsRandomAccessible<P> for PointCloud3D<P>where
P: Is3D,
impl<P> IsRandomAccessible<P> for PointCloud3D<P>where
P: Is3D,
Source§impl<P> IsRandomInsertible<P> for PointCloud3D<P>where
P: Is3D,
impl<P> IsRandomInsertible<P> for PointCloud3D<P>where
P: Is3D,
Source§impl<P> IsScalable for PointCloud3D<P>where
P: IsEditable3D,
impl<P> IsScalable for PointCloud3D<P>where
P: IsEditable3D,
Source§impl<P> IsSortable3D for PointCloud3D<P>where
P: Is3D,
impl<P> IsSortable3D for PointCloud3D<P>where
P: Is3D,
Source§impl<P> IsSortableND for PointCloud3D<P>where
P: Is3D,
impl<P> IsSortableND for PointCloud3D<P>where
P: Is3D,
Source§impl<P> IsViewBuildable for PointCloud3D<P>
impl<P> IsViewBuildable for PointCloud3D<P>
Source§impl<P> Ord for PointCloud3D<P>
impl<P> Ord for PointCloud3D<P>
Source§fn cmp(&self, other: &PointCloud3D<P>) -> Ordering
fn cmp(&self, other: &PointCloud3D<P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P> PartialEq for PointCloud3D<P>
impl<P> PartialEq for PointCloud3D<P>
Source§impl<P> PartialOrd for PointCloud3D<P>where
P: Is3D + PartialOrd,
impl<P> PartialOrd for PointCloud3D<P>where
P: Is3D + PartialOrd,
impl<P> Eq for PointCloud3D<P>
impl<P> StructuralPartialEq for PointCloud3D<P>where
P: Is3D,
Auto Trait Implementations§
impl<P> Freeze for PointCloud3D<P>
impl<P> RefUnwindSafe for PointCloud3D<P>where
P: RefUnwindSafe,
impl<P> Send for PointCloud3D<P>where
P: Send,
impl<P> Sync for PointCloud3D<P>where
P: Sync,
impl<P> Unpin for PointCloud3D<P>where
P: Unpin,
impl<P> UnwindSafe for PointCloud3D<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more