56 #ifndef OPENMESH_TRAITS_HH 57 #define OPENMESH_TRAITS_HH 64 #include <OpenMesh/Core/Geometry/VectorT.hh> 66 #include <OpenMesh/Core/Mesh/Handles.hh> 79 #define VertexAttributes(_i) enum { VertexAttributes = _i } 82 #define HalfedgeAttributes(_i) enum { HalfedgeAttributes = _i } 85 #define EdgeAttributes(_i) enum { EdgeAttributes = _i } 88 #define FaceAttributes(_i) enum { FaceAttributes = _i } 91 #define VertexTraits \ 92 template <class Base, class Refs> struct VertexT : public Base 95 #define HalfedgeTraits \ 96 template <class Base, class Refs> struct HalfedgeT : public Base 100 template <class Base, class Refs> struct EdgeT : public Base 104 template <class Base, class Refs> struct FaceT : public Base 142 #ifndef DOXY_IGNORE_THIS 172 #ifndef DOXY_IGNORE_THIS 186 typedef typename T1::Point
Point;
187 typedef typename T1::Normal
Normal;
189 typedef typename T1::TexCoord TexCoord;
191 template <
class Base,
class Refs>
class VertexT :
192 public T1::template VertexT<
193 typename T2::template VertexT<Base, Refs>, Refs>
196 template <
class Base,
class Refs>
class HalfedgeT :
197 public T1::template HalfedgeT<
198 typename T2::template HalfedgeT<Base, Refs>, Refs>
202 template <
class Base,
class Refs>
class EdgeT :
203 public T1::template EdgeT<
204 typename T2::template EdgeT<Base, Refs>, Refs>
208 template <
class Base,
class Refs>
class FaceT :
209 public T1::template FaceT<
210 typename T2::template FaceT<Base, Refs>, Refs>
223 #define OM_Merge_Traits(_S1, _S2, _D) \ 224 typedef OpenMesh::MergeTraits<_S1, _S2>::Result _D; 231 #define OM_Merge_Traits_In_Template(_S1, _S2, _D) \ 232 typedef typename OpenMesh::MergeTraits<_S1, _S2>::Result _D; 238 #endif // OPENMESH_TRAITS_HH defined Vec3f Normal
The default normal type is OpenMesh::Vec3f.
#define FaceTraits
Macro for defining the face traits. See Specifying your MyMesh.
#define EdgeTraits
Macro for defining the edge traits. See Specifying your MyMesh.
float TexCoord1D
The default 1D texture coordinate type is float.
Add colors to mesh item (vertices/faces/edges)
#define VertexTraits
Macro for defining the vertex traits. See Specifying your MyMesh.
int TextureIndex
The default texture index type.
Vec3f TexCoord3D
The default 3D texture coordinate type is OpenMesh::Vec3f.
#define HalfedgeAttributes(_i)
Macro for defining the halfedge attributes. See Specifying your MyMesh.
Vec3uc Color
The default color type is OpenMesh::Vec3uc.
#define EdgeAttributes(_i)
Macro for defining the edge attributes. See Specifying your MyMesh.
Add storage for previous halfedge (halfedges). The bit is set by default in the DefaultTraits.
#define HalfedgeTraits
Macro for defining the halfedge traits. See Specifying your MyMesh.
#define VertexAttributes(_i)
Macro for defining the vertex attributes. See Specifying your MyMesh.
Vec2f TexCoord2D
The default 2D texture coordinate type is OpenMesh::Vec2f.
Vec3f Point
The default coordinate type is OpenMesh::Vec3f.
#define FaceAttributes(_i)
Macro for defining the face attributes. See Specifying your MyMesh.