|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
Functions for reading OBJ files. More...
Functions | |
| Mesh | read_obj (const std::string &path) |
| Load a mesh from a Wavefront OBJ file. | |
Functions for reading OBJ files.
| Mesh scimesh::obj_io::read_obj | ( | const std::string & | path | ) |
Load a mesh from a Wavefront OBJ file.
Reads vertex positions, face indices, and optionally normals and texture coordinates from the file. OBJ is a text format — you can open .obj files in any text editor to inspect them.
| path | Filesystem path to the .obj file. |
| std::runtime_error | if the file cannot be opened or parsed. |
Definition at line 8 of file obj_io.cpp.