removes unused traits and attributes from MyMesh
This commit is contained in:
parent
c86240455d
commit
8d253a3c91
@ -10,17 +10,10 @@ using namespace OpenMesh;
|
||||
using namespace OpenMesh::Attributes;
|
||||
|
||||
struct MyTraits : public OpenMesh::DefaultTraits {
|
||||
// use vertex normals and vertex colors
|
||||
VertexAttributes(OpenMesh::Attributes::Normal | OpenMesh::Attributes::Color);
|
||||
// store the previous halfedge
|
||||
HalfedgeAttributes(OpenMesh::Attributes::PrevHalfedge);
|
||||
// use face normals face colors
|
||||
FaceAttributes( OpenMesh::Attributes::Normal | OpenMesh::Attributes::Color );
|
||||
FaceAttributes(OpenMesh::Attributes::Normal);
|
||||
EdgeAttributes(OpenMesh::Attributes::Color);
|
||||
// vertex thickness
|
||||
VertexTraits{float thickness; float value; Color faceShadingColor;};
|
||||
// edge thickness
|
||||
EdgeTraits{float thickness;};
|
||||
};
|
||||
typedef OpenMesh::PolyMesh_ArrayKernelT<MyTraits> MyMesh;
|
||||
|
||||
|
Reference in New Issue
Block a user