summaryrefslogtreecommitdiff
path: root/wave-sim/src/graphics/meshloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'wave-sim/src/graphics/meshloader.h')
-rw-r--r--wave-sim/src/graphics/meshloader.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/wave-sim/src/graphics/meshloader.h b/wave-sim/src/graphics/meshloader.h
new file mode 100644
index 0000000..e6b87fd
--- /dev/null
+++ b/wave-sim/src/graphics/meshloader.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <vector>
+#include "Eigen/Dense"
+#include "Eigen/StdVector"
+
+EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix4i)
+
+class MeshLoader
+{
+public:
+ static bool loadTetMesh(const std::string &filepath, std::vector<Eigen::Vector3d> &vertices, std::vector<Eigen::Vector4i> &tets);
+private:
+ MeshLoader();
+};