pub struct RobustObjReader;
Expand description
Enhanced OBJ reader with comprehensive format support
Implementations§
Source§impl RobustObjReader
impl RobustObjReader
Sourcepub fn read_obj_file<P: AsRef<Path>>(path: P) -> Result<ObjData>
pub fn read_obj_file<P: AsRef<Path>>(path: P) -> Result<ObjData>
Read a complete OBJ file with materials
Sourcepub fn read_mtl_file<P: AsRef<Path>>(
path: P,
) -> Result<HashMap<String, Material>>
pub fn read_mtl_file<P: AsRef<Path>>( path: P, ) -> Result<HashMap<String, Material>>
Read an MTL file and return materials
Sourcepub fn obj_data_to_mesh(obj_data: &ObjData) -> Result<TriangleMesh>
pub fn obj_data_to_mesh(obj_data: &ObjData) -> Result<TriangleMesh>
Convert ObjData to TriangleMesh
Auto Trait Implementations§
impl Freeze for RobustObjReader
impl RefUnwindSafe for RobustObjReader
impl Send for RobustObjReader
impl Sync for RobustObjReader
impl Unpin for RobustObjReader
impl UnwindSafe for RobustObjReader
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<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.