20 lines
571 B
C
20 lines
571 B
C
|
#ifndef MY_MESH_H
|
||
|
#define MY_MESH_H
|
||
|
|
||
|
#include <OpenMesh/Core/IO/MeshIO.hh>
|
||
|
#include <OpenMesh/Core/Mesh/PolyMesh_ArrayKernelT.hh>
|
||
|
#include <OpenMesh/Core/Geometry/VectorT.hh>
|
||
|
|
||
|
|
||
|
struct MyTraits : public OpenMesh::DefaultTraits {
|
||
|
VertexAttributes(OpenMesh::Attributes::Normal | OpenMesh::Attributes::Color);
|
||
|
HalfedgeAttributes(OpenMesh::Attributes::PrevHalfedge);
|
||
|
FaceAttributes(OpenMesh::Attributes::Normal);
|
||
|
EdgeAttributes(OpenMesh::Attributes::Color);
|
||
|
typedef OpenMesh::Vec3f Color;
|
||
|
};
|
||
|
typedef OpenMesh::PolyMesh_ArrayKernelT<MyTraits> MyMesh;
|
||
|
|
||
|
|
||
|
#endif
|