[−][src]Trait obj::FromRawVertex
Conversion from RawObj
's raw data.
Required methods
fn process(
vertices: Vec<(f32, f32, f32, f32)>,
normals: Vec<(f32, f32, f32)>,
tex_coords: Vec<(f32, f32, f32)>,
polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>
vertices: Vec<(f32, f32, f32, f32)>,
normals: Vec<(f32, f32, f32)>,
tex_coords: Vec<(f32, f32, f32)>,
polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>
Build vertex and index buffer from raw object data.
Implementors
impl<I: FromPrimitive + Integer + Copy> FromRawVertex<I> for Vertex
[src]
fn process(
positions: Vec<(f32, f32, f32, f32)>,
normals: Vec<(f32, f32, f32)>,
_: Vec<(f32, f32, f32)>,
polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>
[src]
positions: Vec<(f32, f32, f32, f32)>,
normals: Vec<(f32, f32, f32)>,
_: Vec<(f32, f32, f32)>,
polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>
impl<I: FromPrimitive + Integer> FromRawVertex<I> for Position
[src]
fn process(
vertices: Vec<(f32, f32, f32, f32)>,
_: Vec<(f32, f32, f32)>,
_: Vec<(f32, f32, f32)>,
polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>
[src]
vertices: Vec<(f32, f32, f32, f32)>,
_: Vec<(f32, f32, f32)>,
_: Vec<(f32, f32, f32)>,
polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>