pub struct PlyImport {
pub vertices: PointCloud,
pub triangles: Vec<[u32; 3]>,
pub triangle_colours: Option<Vec<[f64; 4]>>,
pub warnings: Vec<String>,
}Expand description
What read_ply_bytes found.
Fields§
§vertices: PointCloudThe vertex element: positions and every other property read at
each vertex, colours scaled into [0, 1].
triangles: Vec<[u32; 3]>The faces, each fanned from its first corner into triangles; empty for a point cloud.
triangle_colours: Option<Vec<[f64; 4]>>An RGBA colour per triangle, where the face element carries one; a face fanned into several triangles gives each its colour.
warnings: Vec<String>What was read with a caveat or passed over: elements other than vertices and faces, list properties of a vertex, faces of fewer than three corners.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlyImport
impl RefUnwindSafe for PlyImport
impl Send for PlyImport
impl Sync for PlyImport
impl Unpin for PlyImport
impl UnsafeUnpin for PlyImport
impl UnwindSafe for PlyImport
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,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.