Skip to main content

import_obj

Function import_obj 

Source
pub fn import_obj(bytes: &[u8]) -> Result<Mesh, AssetError>
Expand description

Parse a Wavefront .obj: v x y z vertices and f faces (polygons fan-triangulated). Face tokens may be v, v/vt, v//vn, or v/vt/vn; indices are 1-based and may be negative (relative to the current vertex count). vt / vn / vp / groups are ignored for geometry.