pub struct PlyWriteOptions {
pub format: PlyFormat,
pub comments: Vec<String>,
pub obj_info: Vec<String>,
pub custom_vertex_properties: Vec<(String, Vec<PlyValue>)>,
pub custom_face_properties: Vec<(String, Vec<PlyValue>)>,
pub include_normals: bool,
pub include_colors: bool,
pub vertex_property_order: Option<Vec<String>>,
}
Expand description
PLY writer configuration options
Fields§
§format: PlyFormat
Output format (ASCII or binary)
comments: Vec<String>
Comments to include in the header
obj_info: Vec<String>
Object info to include in the header
custom_vertex_properties: Vec<(String, Vec<PlyValue>)>
Custom properties to include for vertices
custom_face_properties: Vec<(String, Vec<PlyValue>)>
Custom properties to include for faces
include_normals: bool
Whether to include normals if available
include_colors: bool
Whether to include colors if available
vertex_property_order: Option<Vec<String>>
Custom property ordering for vertices
Implementations§
Source§impl PlyWriteOptions
impl PlyWriteOptions
Sourcepub fn binary_little_endian() -> Self
pub fn binary_little_endian() -> Self
Create new options with binary little endian format
Sourcepub fn binary_big_endian() -> Self
pub fn binary_big_endian() -> Self
Create new options with binary big endian format
Sourcepub fn with_comment<S: Into<String>>(self, comment: S) -> Self
pub fn with_comment<S: Into<String>>(self, comment: S) -> Self
Add a comment to the header
Sourcepub fn with_obj_info<S: Into<String>>(self, info: S) -> Self
pub fn with_obj_info<S: Into<String>>(self, info: S) -> Self
Add object info to the header
Sourcepub fn with_normals(self, include: bool) -> Self
pub fn with_normals(self, include: bool) -> Self
Include normals in output
Sourcepub fn with_colors(self, include: bool) -> Self
pub fn with_colors(self, include: bool) -> Self
Include colors in output
Sourcepub fn with_vertex_property_order(self, order: Vec<String>) -> Self
pub fn with_vertex_property_order(self, order: Vec<String>) -> Self
Set custom vertex property ordering
Trait Implementations§
Source§impl Clone for PlyWriteOptions
impl Clone for PlyWriteOptions
Source§fn clone(&self) -> PlyWriteOptions
fn clone(&self) -> PlyWriteOptions
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 PlyWriteOptions
impl Debug for PlyWriteOptions
Auto Trait Implementations§
impl Freeze for PlyWriteOptions
impl RefUnwindSafe for PlyWriteOptions
impl Send for PlyWriteOptions
impl Sync for PlyWriteOptions
impl Unpin for PlyWriteOptions
impl UnwindSafe for PlyWriteOptions
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.