summaryrefslogtreecommitdiff
path: root/src/graphics/meshloader.h
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-04-09 03:14:17 -0400
committersotech117 <michael_foiani@brown.edu>2024-04-09 03:14:17 -0400
commit7a8d0d8bc2572707c9d35006f30ea835c86954b0 (patch)
treededb9a65c1698202ad485378b4186b667008abe5 /src/graphics/meshloader.h
parent818324678bd5dca790c57048e5012d2937a4b5e5 (diff)
first draft to generate waves
Diffstat (limited to 'src/graphics/meshloader.h')
-rw-r--r--src/graphics/meshloader.h18
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();
+};