|
scimesh 0.3.2
Headless CPU-only 3D software renderer for scientific mesh visualization
|
Namespaces | |
| namespace | detail |
Functions | |
| void | write_gltf (const std::string &path, const Scene &scene, const Camera *camera=nullptr) |
| Write a scene as glTF 2.0 (JSON document + external .bin file). | |
| void | write_glb (const std::string &path, const Scene &scene, const Camera *camera=nullptr) |
| Write a scene as a single binary glTF file (.glb). | |
| void | write (const std::string &path, const Scene &scene, const Camera *camera=nullptr) |
| Write a scene as glTF, choosing the format from the file extension. | |
|
inline |
Write a scene as a single binary glTF file (.glb).
| path | Output path for the .glb file (self-contained, no .bin). |
| scene | The scene to export. |
| camera | Optional camera (see write_gltf()). |
| std::runtime_error | if the file cannot be written. |
|
inline |
Write a scene as glTF 2.0 (JSON document + external .bin file).
| path | Output path for the .gltf JSON document. The binary buffer is written next to it as <stem>.bin. |
| scene | The scene to export (meshes, transforms, names). |
| camera | Optional camera; when non-null and perspective, exported as a glTF perspective camera node. |
| std::runtime_error | if the output files cannot be written. |