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: Mesh

Mesh used by the model containing its geometry

name: String

Name assigned to this mesh

Methods

impl Model
[src]

fn new(mesh: Mesh, name: String) -> Model

Create a new model, associating a name with a mesh

Trait Implementations

impl Debug for Model
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.