pub struct PointBuffer {
pub anchor: Vec3,
pub positions: Vec<[f32; 3]>,
pub colors: Option<Vec<[f32; 3]>>,
}Expand description
Shared points, from pcd::base64, points::array, or points::base64.
Fields§
§anchor: Vec3See MeshBuffer::anchor.
positions: Vec<[f32; 3]>Point positions relative to anchor.
colors: Option<Vec<[f32; 3]>>One linear RGB colour per point, if the source has colours.
Trait Implementations§
Source§impl Clone for PointBuffer
impl Clone for PointBuffer
Source§fn clone(&self) -> PointBuffer
fn clone(&self) -> PointBuffer
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 Debug for PointBuffer
impl Debug for PointBuffer
Source§impl PartialEq for PointBuffer
impl PartialEq for PointBuffer
impl StructuralPartialEq for PointBuffer
Auto Trait Implementations§
impl Freeze for PointBuffer
impl RefUnwindSafe for PointBuffer
impl Send for PointBuffer
impl Sync for PointBuffer
impl Unpin for PointBuffer
impl UnwindSafe for PointBuffer
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