pub struct ExportOptions {
pub format: ExportFormat,
pub recompute_normals: bool,
pub flip_winding: bool,
}Expand description
Fine-grained options for export_with_options.
For simple use cases prefer export_auto, which infers the format from
the file extension and applies sensible defaults.
Fields§
§format: ExportFormatTarget format (overrides file-extension detection).
recompute_normals: boolRe-compute per-vertex normals before writing (useful after decimation).
flip_winding: boolReverse triangle winding order (e.g. to fix inside-out normals).
Implementations§
Source§impl ExportOptions
impl ExportOptions
pub fn new(format: ExportFormat) -> Self
Auto Trait Implementations§
impl Freeze for ExportOptions
impl RefUnwindSafe for ExportOptions
impl Send for ExportOptions
impl Sync for ExportOptions
impl Unpin for ExportOptions
impl UnsafeUnpin for ExportOptions
impl UnwindSafe for ExportOptions
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