Struct wavefront_obj::obj::Shape[][src]

pub struct Shape {
    pub primitive: Primitive,
    pub groups: Vec<GroupName>,
    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<GroupName>

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.