aboutsummaryrefslogtreecommitdiff
path: root/src/graphics/meshloader.h
blob: 63a175af1207989a9ed66f0e08a83794e68841c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
};