pub struct PlyData {
pub num_vertices: usize,
pub positions: Vec<[f32; 3]>,
pub colors: Option<Vec<[u8; 3]>>,
pub opacities: Option<Vec<f32>>,
pub scales: Option<Vec<[f32; 3]>>,
pub rotations: Option<Vec<[f32; 4]>>,
pub sh_degree: Option<u32>,
pub custom_properties: HashMap<String, Vec<f32>>,
pub file_size_bytes: u64,
}Expand description
Parsed PLY file data.
Fields§
§num_vertices: usize§positions: Vec<[f32; 3]>§colors: Option<Vec<[u8; 3]>>§opacities: Option<Vec<f32>>§scales: Option<Vec<[f32; 3]>>§rotations: Option<Vec<[f32; 4]>>§sh_degree: Option<u32>§custom_properties: HashMap<String, Vec<f32>>§file_size_bytes: u64Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlyData
impl RefUnwindSafe for PlyData
impl Send for PlyData
impl Sync for PlyData
impl Unpin for PlyData
impl UnsafeUnpin for PlyData
impl UnwindSafe for PlyData
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> 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