|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
Functions for reading PLY files. More...
Functions | |
| Mesh | read_ply (const std::string &path) |
| Load a mesh from a Stanford PLY file. | |
Functions for reading PLY files.
| Mesh scimesh::ply_io::read_ply | ( | const std::string & | path | ) |
Load a mesh from a Stanford PLY file.
Reads vertex positions, face indices, and optionally per-vertex colors and normals. Both ASCII and binary (little-endian) PLY files are supported.
| path | Filesystem path to the .ply file. |
| std::runtime_error | if the file cannot be opened or parsed. |
Mesh::colors. Use mesh.has_colors() to check.Definition at line 12 of file ply_io.cpp.