Function tobj::load_obj

source ·
pub fn load_obj<P>(file_name: P, load_options: &LoadOptions) -> LoadResultwhere
    P: AsRef<Path> + Debug,
Expand description

Load the various objects specified in the OBJ file and any associated MTL file.

Returns a pair of Vecs containing the loaded models and materials from the file.

Arguments

  • load_options – Governs on-the-fly processing of the mesh during loading. See LoadOptions for more information.