Struct del_msh::io_obj::WavefrontObj
source · pub struct WavefrontObj<Index, Real> {
pub vtx2xyz: Vec<Real>,
pub vtx2uv: Vec<Real>,
pub vtx2nrm: Vec<Real>,
pub elem2idx: Vec<Index>,
pub idx2vtx_xyz: Vec<Index>,
pub idx2vtx_uv: Vec<Index>,
pub idx2vtx_nrm: Vec<Index>,
pub elem2group: Vec<Index>,
pub group2name: Vec<String>,
pub elem2mtl: Vec<Index>,
pub mtl_file_name: String,
pub mtl2name: Vec<String>,
}
Fields§
§vtx2xyz: Vec<Real>
§vtx2uv: Vec<Real>
§vtx2nrm: Vec<Real>
§elem2idx: Vec<Index>
§idx2vtx_xyz: Vec<Index>
§idx2vtx_uv: Vec<Index>
§idx2vtx_nrm: Vec<Index>
§elem2group: Vec<Index>
§group2name: Vec<String>
§elem2mtl: Vec<Index>
§mtl_file_name: String
§mtl2name: Vec<String>
Implementations§
source§impl<Index, Real> WavefrontObj<Index, Real>where
Real: FromStr + Display,
Index: PrimInt + 'static,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
impl<Index, Real> WavefrontObj<Index, Real>where
Real: FromStr + Display,
Index: PrimInt + 'static,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
Trait Implementations§
source§impl<Index, Real> Default for WavefrontObj<Index, Real>where
Real: FromStr + Display,
Index: PrimInt + 'static,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
impl<Index, Real> Default for WavefrontObj<Index, Real>where
Real: FromStr + Display,
Index: PrimInt + 'static,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
Auto Trait Implementations§
impl<Index, Real> Freeze for WavefrontObj<Index, Real>
impl<Index, Real> RefUnwindSafe for WavefrontObj<Index, Real>where
Real: RefUnwindSafe,
Index: RefUnwindSafe,
impl<Index, Real> Send for WavefrontObj<Index, Real>
impl<Index, Real> Sync for WavefrontObj<Index, Real>
impl<Index, Real> Unpin for WavefrontObj<Index, Real>
impl<Index, Real> UnwindSafe for WavefrontObj<Index, Real>where
Real: UnwindSafe,
Index: UnwindSafe,
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.