Struct obj::raw::object::RawObj [] [src]

pub struct RawObj {
    pub name: Option<String>,
    pub material_libraries: Vec<String>,
    pub positions: Vec<(f32, f32, f32, f32)>,
    pub tex_coords: Vec<(f32, f32, f32)>,
    pub normals: Vec<(f32, f32, f32)>,
    pub param_vertices: Vec<(f32, f32, f32)>,
    pub points: Vec<Point>,
    pub lines: Vec<Line>,
    pub polygons: Vec<Polygon>,
    pub groups: HashMap<StringGroup>,
    pub meshes: HashMap<StringGroup>,
    pub smoothing_groups: VecMap<Group>,
    pub merging_groups: VecMap<Group>,
}

Low-level Rust binding for .obj format.

Fields

name: Option<String>

Name of the object.

material_libraries: Vec<String>

.mtl files which required by this object.

positions: Vec<(f32, f32, f32, f32)>

Position vectors of each vertex.

tex_coords: Vec<(f32, f32, f32)>

Texture coordinates of each vertex.

normals: Vec<(f32, f32, f32)>

Normal vectors of each vertex.

param_vertices: Vec<(f32, f32, f32)>

Parametric vertices.

points: Vec<Point>

Points which stores the index data of position vectors.

lines: Vec<Line>

Lines which store the index data of vectors.

polygons: Vec<Polygon>

Polygons which store the index data of vectors.

groups: HashMap<StringGroup>

Groups of multiple geometries.

meshes: HashMap<StringGroup>

Geometries which consist in a same material.

smoothing_groups: VecMap<Group>

Smoothing groups.

merging_groups: VecMap<Group>

Merging groups.