diff options
author | github-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com> | 2024-03-19 02:01:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 02:01:17 +0000 |
commit | 0f8d0e3cfdbd9b11b2357ed3e1a11375e7af8e80 (patch) | |
tree | 48b88b3b3b3a522a90c38b2178363a163a32f2ee /src/graphics/meshloader.h |
Initial commit
Diffstat (limited to 'src/graphics/meshloader.h')
-rw-r--r-- | src/graphics/meshloader.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/graphics/meshloader.h b/src/graphics/meshloader.h new file mode 100644 index 0000000..63a175a --- /dev/null +++ b/src/graphics/meshloader.h @@ -0,0 +1,18 @@ +#pragma once + +#include <vector> +#include "Eigen/Dense" +#include "Eigen/StdVector" + +EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix4i) + +class MeshLoader +{ +public: + static bool loadTriMesh(const std::string &filepath, + std::vector<Eigen::Vector3f> &vertices, + std::vector<Eigen::Vector3i> &faces); + +private: + MeshLoader(); +}; |