SurfaceMesh from glm types
Jeordanis opened this issue · 0 comments
Jeordanis commented
Hi! I started playing with your library today. It is very different from what I'm used to but I like it so far. Thanks!
I was wondering if we have a way to use glm
types instead of Eigen
to create and manipulate meshes/geometry.
For me, this is more intuitive:
std::vector<glm::vec3> points;
points.emplace_back(glm::vec3(0,0,0));
points.emplace_back(glm::vec3(2,0,0));
points.emplace_back(glm::vec3(2,0,2));
points.emplace_back(glm::vec3(0,0,2));
Than this:
const size_t vCount = 4;
Eigen::MatrixXd vertexPos(vCount, 3);
vertexPos << 0, 0, 0,
2, 0, 0,
2, 0, 2,
0, 0, 2;
I find Eigen too complex for my needs. Is the whole library using Eigen by default?