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 {