pub struct Group {
pub name: String,
pub index: usize,
pub material: Option<ObjMaterial>,
pub polys: Vec<SimplePolygon>,
}Fields§
§name: StringName of the group assigned by the g ... command in the .obj file.
index: usizeAn index is used to tell groups apart that share the same name.
This doesn’t appear explicitly in the .obj file, but is used here to simplify groups by
limiting them to single materials.
material: Option<ObjMaterial>Material assigned to this group via the usemtl ... command in the .obj file.
After material libs are loaded, this will point to the loaded Material struct.
polys: Vec<SimplePolygon>A list of polygons appearing as f ... in the .obj file.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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