From 0c0cc8a907e6da2963187407569f1c64694083e5 Mon Sep 17 00:00:00 2001 From: papush! Date: Tue, 9 Nov 2021 22:17:39 +0100 Subject: [PATCH] use eigen types in the mesh --- src/my_mesh.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/my_mesh.h b/src/my_mesh.h index 76e2996..b7512c5 100644 --- a/src/my_mesh.h +++ b/src/my_mesh.h @@ -7,14 +7,17 @@ #include #include #include +#include struct MyTraits : public OpenMesh::DefaultTraits { + using Point = Eigen::Vector3; + using Normal = Eigen::Vector3; + using Color = Eigen::Vector3; VertexAttributes(OpenMesh::Attributes::Normal); HalfedgeAttributes(OpenMesh::Attributes::PrevHalfedge); FaceAttributes(OpenMesh::Attributes::Normal); EdgeAttributes(OpenMesh::Attributes::Color); - typedef OpenMesh::Vec3f Color; }; class MyMesh : public OpenMesh::TriMesh_ArrayKernelT {