|
scimesh 0.3.4
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.
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.Mesh::uvs yourself if you need textured rendering.Definition at line 48 of file ply_io.cpp.