removes unused traits and attributes from MyMesh

This commit is contained in:
ccolin 2020-10-02 17:48:06 +02:00
parent c86240455d
commit 8d253a3c91

View File

@ -10,17 +10,10 @@ using namespace OpenMesh;
using namespace OpenMesh::Attributes; using namespace OpenMesh::Attributes;
struct MyTraits : public OpenMesh::DefaultTraits { struct MyTraits : public OpenMesh::DefaultTraits {
// use vertex normals and vertex colors VertexAttributes(OpenMesh::Attributes::Normal | OpenMesh::Attributes::Color);
VertexAttributes( OpenMesh::Attributes::Normal | OpenMesh::Attributes::Color ); HalfedgeAttributes(OpenMesh::Attributes::PrevHalfedge);
// store the previous halfedge FaceAttributes(OpenMesh::Attributes::Normal);
HalfedgeAttributes( OpenMesh::Attributes::PrevHalfedge ); EdgeAttributes(OpenMesh::Attributes::Color);
// use face normals face colors
FaceAttributes( OpenMesh::Attributes::Normal | OpenMesh::Attributes::Color );
EdgeAttributes( OpenMesh::Attributes::Color );
// vertex thickness
VertexTraits{float thickness; float value; Color faceShadingColor;};
// edge thickness
EdgeTraits{float thickness;};
}; };
typedef OpenMesh::PolyMesh_ArrayKernelT<MyTraits> MyMesh; typedef OpenMesh::PolyMesh_ArrayKernelT<MyTraits> MyMesh;