#[repr(C)]pub struct PlyGaussianPod {
pub pos: [f32; 3],
pub normal: [f32; 3],
pub color: [f32; 3],
pub sh: [f32; 45],
pub alpha: f32,
pub scale: [f32; 3],
pub rot: [f32; 4],
}Expand description
The POD representation of Gaussian in PLY format.
Fields are stored as arrays because using glam types would add padding according to C alignment rules.
Fields§
§pos: [f32; 3]§normal: [f32; 3]§color: [f32; 3]§sh: [f32; 45]§alpha: f32§scale: [f32; 3]§rot: [f32; 4]Implementations§
Trait Implementations§
Source§impl Clone for PlyGaussianPod
impl Clone for PlyGaussianPod
Source§fn clone(&self) -> PlyGaussianPod
fn clone(&self) -> PlyGaussianPod
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 PlyGaussianPod
impl Debug for PlyGaussianPod
Source§impl From<&Gaussian> for PlyGaussianPod
impl From<&Gaussian> for PlyGaussianPod
Source§impl From<Gaussian> for PlyGaussianPod
impl From<Gaussian> for PlyGaussianPod
Source§impl FromIterator<PlyGaussianPod> for PlyGaussians
impl FromIterator<PlyGaussianPod> for PlyGaussians
Source§fn from_iter<T: IntoIterator<Item = PlyGaussianPod>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = PlyGaussianPod>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for PlyGaussianPod
impl PartialEq for PlyGaussianPod
Source§impl PropertyAccess for PlyGaussianPod
impl PropertyAccess for PlyGaussianPod
fn new() -> Self
fn set_property(&mut self, property_name: String, property: Property)
fn get_char(&self, _property_name: &String) -> Option<i8>
fn get_uchar(&self, _property_name: &String) -> Option<u8>
fn get_short(&self, _property_name: &String) -> Option<i16>
fn get_ushort(&self, _property_name: &String) -> Option<u16>
fn get_int(&self, _property_name: &String) -> Option<i32>
fn get_uint(&self, _property_name: &String) -> Option<u32>
fn get_float(&self, _property_name: &String) -> Option<f32>
fn get_double(&self, _property_name: &String) -> Option<f64>
fn get_list_char(&self, _property_name: &String) -> Option<&[i8]>
fn get_list_uchar(&self, _property_name: &String) -> Option<&[u8]>
fn get_list_short(&self, _property_name: &String) -> Option<&[i16]>
fn get_list_ushort(&self, _property_name: &String) -> Option<&[u16]>
fn get_list_int(&self, _property_name: &String) -> Option<&[i32]>
fn get_list_uint(&self, _property_name: &String) -> Option<&[u32]>
fn get_list_float(&self, _property_name: &String) -> Option<&[f32]>
fn get_list_double(&self, _property_name: &String) -> Option<&[f64]>
impl Copy for PlyGaussianPod
impl Pod for PlyGaussianPod
impl StructuralPartialEq for PlyGaussianPod
Auto Trait Implementations§
impl Freeze for PlyGaussianPod
impl RefUnwindSafe for PlyGaussianPod
impl Send for PlyGaussianPod
impl Sync for PlyGaussianPod
impl Unpin for PlyGaussianPod
impl UnwindSafe for PlyGaussianPod
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.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