Skip to main content

read_obj_file

Function read_obj_file 

Source
pub fn read_obj_file(path: impl AsRef<Path>) -> OgeomResult<ObjImport>
Expand description

Read an OBJ file from disk with its materials, as read_obj_with_materials reads them.

A library or texture is looked for at the relative path its statement gives, under the OBJ’s own directory; a path that is absolute, or that climbs out with .., or that is not found there, is looked for by its last component in that directory, and nowhere else. Backslashes separate components as slashes do.

§Errors

OgeomError::Construction if path cannot be read, and as read_obj_with_materials.