pub struct ObjDecoder { /* private fields */ }Expand description
Wavefront OBJ decoder.
Decodes a self-contained OBJ document into a Scene3D. Companion
MTL files referenced by mtllib directives are not auto-resolved
(the decoder has no file-system context); the material names land
in Primitive::extras["obj:usemtl"] and the library file names
land in Scene3D::extras["obj:mtllibs"] so the caller can fetch
them and merge via crate::mtl::merge_materials_into_scene.
Use obj::parse_obj_with_resolver directly when MTL bytes are
already available.
Implementations§
Source§impl ObjDecoder
impl ObjDecoder
Trait Implementations§
Source§impl Debug for ObjDecoder
impl Debug for ObjDecoder
Source§impl Default for ObjDecoder
impl Default for ObjDecoder
Source§fn default() -> ObjDecoder
fn default() -> ObjDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ObjDecoder
impl RefUnwindSafe for ObjDecoder
impl Send for ObjDecoder
impl Sync for ObjDecoder
impl Unpin for ObjDecoder
impl UnsafeUnpin for ObjDecoder
impl UnwindSafe for ObjDecoder
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