pub struct Shape {
pub primitive: Primitive,
pub groups: Vec<String>,
pub smoothing_groups: Vec<u32>,
}
Expand description
A shape gathers a primitive and groups.
Each shape is associated with 0 or many groups. Those are text identifiers used to gather geometry elements into different groups.
Fields§
§primitive: Primitive
The primitive of the shape.
groups: Vec<String>
Associated groups. No associated group means the shape uses the default group.
smoothing_groups: Vec<u32>
Associated smoothing groups. No associated smoothing group means the shape should be rendered flat.
Trait Implementations§
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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