Struct tobj::Model [] [src]

pub struct Model {
    pub mesh: Mesh,
    pub name: String,
}

A named model within the file, associates some mesh with a name that was specified with an o or g keyword in the OBJ file

Fields

Mesh used by the model containing its geometry

Name assigned to this mesh

Methods

impl Model
[src]

Create a new model, associating a name with a mesh

Trait Implementations

impl Clone for Model
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Model
[src]

Formats the value using the given formatter.