9 #ifndef SE_MESHING_IO_HPP 10 #define SE_MESHING_IO_HPP 26 static const std::array<std::string, 3>
mesh_extensions = {
".obj",
".ply",
".vtk"};
45 template<
typename FaceT>
47 const std::string& filename,
48 const Eigen::Matrix4f& T_OM = Eigen::Matrix4f::Identity());
60 template<
typename FaceT>
62 const std::string& filename,
63 const Eigen::Matrix4f& T_OM = Eigen::Matrix4f::Identity());
75 template<
typename FaceT>
77 const std::string& filename,
78 const Eigen::Matrix4f& T_OM = Eigen::Matrix4f::Identity());
90 template<
typename FaceT>
92 const std::string& filename,
93 const Eigen::Matrix4f& T_OM = Eigen::Matrix4f::Identity());
98 #include "impl/mesh_io_impl.hpp" 100 #endif // SE_MESHING_IO_HPP int save_mesh_obj(const Mesh< FaceT > &mesh_M, const std::string &filename, const Eigen::Matrix4f &T_OM=Eigen::Matrix4f::Identity())
Save a mesh as an Wavefront OBJ file.
int save_mesh(const Mesh< FaceT > &mesh_M, const std::string &filename, const Eigen::Matrix4f &T_OM=Eigen::Matrix4f::Identity())
Save a mesh to a file whose type is determined by the extension of filename.
std::vector< FaceT > Mesh
Meshes are represented as lists of faces.
Definition: mesh.hpp:38
int save_mesh_vtk(const Mesh< FaceT > &mesh_M, const std::string &filename, const Eigen::Matrix4f &T_OM=Eigen::Matrix4f::Identity())
Save a mesh as a VTK file.
int save_mesh_ply(const Mesh< FaceT > &mesh_M, const std::string &filename, const Eigen::Matrix4f &T_OM=Eigen::Matrix4f::Identity())
Save a mesh as a PLY file.
static const std::array< std::string, 3 > mesh_extensions
The supported file extensions for mesh files.
Definition: mesh_io.hpp:26
bool has_supported_mesh_extension(const std::string &filename)
Test whether the suffix of filename is one of the file extensions in se::io::mesh_extensions.
Helper wrapper to allocate and de-allocate octants in the octree.
Definition: colour_utils.hpp:17