#[non_exhaustive]pub struct GlbOptions {
pub y_up: bool,
pub origin_on_root: bool,
}Expand description
Options for to_glb.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.y_up: boolRotate the root from IFCX’s Z-up to glTF’s Y-up axes, so the model
stands upright in glTF viewers. Default true.
origin_on_root: boolPut the scene origin on the root node’s translation, so the file
keeps the model’s coordinates. With false the model sits around
the glTF origin and the origin is only recorded in extras. Default
true.
Implementations§
Source§impl GlbOptions
impl GlbOptions
Sourcepub fn with_origin_on_root(self, origin_on_root: bool) -> Self
pub fn with_origin_on_root(self, origin_on_root: bool) -> Self
Sets origin_on_root.
Trait Implementations§
Source§impl Clone for GlbOptions
impl Clone for GlbOptions
Source§fn clone(&self) -> GlbOptions
fn clone(&self) -> GlbOptions
Returns a copy 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 GlbOptions
impl Debug for GlbOptions
Source§impl Default for GlbOptions
impl Default for GlbOptions
Source§impl PartialEq for GlbOptions
impl PartialEq for GlbOptions
impl StructuralPartialEq for GlbOptions
Auto Trait Implementations§
impl Freeze for GlbOptions
impl RefUnwindSafe for GlbOptions
impl Send for GlbOptions
impl Sync for GlbOptions
impl Unpin for GlbOptions
impl UnwindSafe for GlbOptions
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