Singleton class to serialize Mesh objects to OBJ file format.
More...
#include <MeshSerializer.hpp>
|
bool | save_to_obj (const Mesh &mesh, const std::filesystem::path &path) |
| Saves a Mesh object to an OBJ file.
|
|
Singleton class to serialize Mesh objects to OBJ file format.
◆ MeshSerializer() [1/3]
Ragot::MeshSerializer::MeshSerializer |
( |
| ) |
|
|
privatedefault |
Private constructor to prevent instantiation from outside the class.
This constructor is private to enforce the singleton pattern, ensuring that only one instance of MeshSerializer exists.
◆ MeshSerializer() [2/3]
Construct a new Mesh Serializer object (deleted).
◆ MeshSerializer() [3/3]
Construct a new Mesh Serializer object (deleted).
This constructor is deleted to prevent moving the MeshSerializer instance.
◆ instance()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ save_to_obj()
bool Ragot::MeshSerializer::save_to_obj |
( |
const Mesh & | mesh, |
|
|
const std::filesystem::path & | path ) |
Saves a Mesh object to an OBJ file.
This method serializes the vertices and faces of the Mesh object and writes them to the specified OBJ file path.
- Parameters
-
mesh | The Mesh object to serialize. |
path | The filesystem path where the OBJ file will be saved. |
- Returns
- true if the serialization was successful, false otherwise.
The documentation for this class was generated from the following files: