summaryrefslogtreecommitdiff
path: root/wave-sim/src/graphics/meshloader.h
blob: e6b87fdad1516487160123731bb5863c7b17344d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
};