61 #ifndef OPENMESH_TRAITS_HH 62 #define OPENMESH_TRAITS_HH 68 #include <OpenMesh/Core/System/config.h> 69 #include <OpenMesh/Core/Geometry/VectorT.hh> 71 #include <OpenMesh/Core/Mesh/Handles.hh> 84 #define VertexAttributes(_i) enum { VertexAttributes = _i } 87 #define HalfedgeAttributes(_i) enum { HalfedgeAttributes = _i } 90 #define EdgeAttributes(_i) enum { EdgeAttributes = _i } 93 #define FaceAttributes(_i) enum { FaceAttributes = _i } 96 #define VertexTraits \ 97 template <class Base, class Refs> struct VertexT : public Base 100 #define HalfedgeTraits \ 101 template <class Base, class Refs> struct HalfedgeT : public Base 105 template <class Base, class Refs> struct EdgeT : public Base 109 template <class Base, class Refs> struct FaceT : public Base 147 #ifndef DOXY_IGNORE_THIS 177 #ifndef DOXY_IGNORE_THIS 191 typedef typename T1::Point
Point;
194 typedef typename T1::TexCoord TexCoord;
196 template <
class Base,
class Refs>
class VertexT :
197 public T1::template VertexT<
198 typename T2::template VertexT<Base, Refs>, Refs>
201 template <
class Base,
class Refs>
class HalfedgeT :
202 public T1::template HalfedgeT<
203 typename T2::template HalfedgeT<Base, Refs>, Refs>
207 template <
class Base,
class Refs>
class EdgeT :
208 public T1::template EdgeT<
209 typename T2::template EdgeT<Base, Refs>, Refs>
213 template <
class Base,
class Refs>
class FaceT :
214 public T1::template FaceT<
215 typename T2::template FaceT<Base, Refs>, Refs>
228 #define OM_Merge_Traits(_S1, _S2, _D) \ 229 typedef OpenMesh::MergeTraits<_S1, _S2>::Result _D; 236 #define OM_Merge_Traits_In_Template(_S1, _S2, _D) \ 237 typedef typename OpenMesh::MergeTraits<_S1, _S2>::Result _D; 243 #endif // OPENMESH_TRAITS_HH defined #define HalfedgeAttributes(_i)
Macro for defining the halfedge attributes. See Specifying your MyMesh.
Definition: Traits.hh:87
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
#define EdgeAttributes(_i)
Macro for defining the edge attributes. See Specifying your MyMesh.
Definition: Traits.hh:90
This file provides some macros containing attribute usage.
#define VertexTraits
Macro for defining the vertex traits. See Specifying your MyMesh.
Definition: Traits.hh:96
#define EdgeTraits
Macro for defining the edge traits. See Specifying your MyMesh.
Definition: Traits.hh:104
float TexCoord1D
The default 1D texture coordinate type is float.
Definition: Traits.hh:135
#define FaceTraits
Macro for defining the face traits. See Specifying your MyMesh.
Definition: Traits.hh:108
Vec3uc Color
The default color type is OpenMesh::Vec3uc.
Definition: Traits.hh:145
#define HalfedgeTraits
Macro for defining the halfedge traits. See Specifying your MyMesh.
Definition: Traits.hh:100
Vec3f TexCoord3D
The default 3D texture coordinate type is OpenMesh::Vec3f.
Definition: Traits.hh:139
#define VertexAttributes(_i)
Macro for defining the vertex attributes. See Specifying your MyMesh.
Definition: Traits.hh:84
Add normals to mesh item (vertices/faces)
Definition: Attributes.hh:87
int TextureIndex
The default texture index type.
Definition: Traits.hh:142
Helper class to merge two mesh traits.
Definition: Traits.hh:175
Vec3f Normal
The default normal type is OpenMesh::Vec3f.
Definition: Traits.hh:132
Add colors to mesh item (vertices/faces/edges)
Definition: Attributes.hh:88
Base class for all traits.
Definition: Traits.hh:126
Add storage for previous halfedge (halfedges). The bit is set by default in the DefaultTraits.
Definition: Attributes.hh:89
Vec3f Point
The default coordinate type is OpenMesh::Vec3f.
Definition: Traits.hh:129
Vec2f TexCoord2D
The default 2D texture coordinate type is OpenMesh::Vec2f.
Definition: Traits.hh:137
#define FaceAttributes(_i)
Macro for defining the face attributes. See Specifying your MyMesh.
Definition: Traits.hh:93