OpenMesh
Traits.hh File Reference

This file defines the default traits and some convenience macros. More...

#include <OpenMesh/Core/System/config.h>
#include <OpenMesh/Core/Geometry/VectorT.hh>
#include <OpenMesh/Core/Mesh/Attributes.hh>
#include <OpenMesh/Core/Mesh/Handles.hh>
Include dependency graph for Traits.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenMesh::DefaultTraits
 Base class for all traits. More...
 
struct  OpenMesh::MergeTraits< _Traits1, _Traits2 >
 Helper class to merge two mesh traits. More...
 

Namespaces

 OpenMesh
 Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels and mesh traits.
 

Macros

#define VertexAttributes(_i)   enum { VertexAttributes = _i }
 Macro for defining the vertex attributes. See Specifying your MyMesh.
 
#define HalfedgeAttributes(_i)   enum { HalfedgeAttributes = _i }
 Macro for defining the halfedge attributes. See Specifying your MyMesh.
 
#define EdgeAttributes(_i)   enum { EdgeAttributes = _i }
 Macro for defining the edge attributes. See Specifying your MyMesh.
 
#define FaceAttributes(_i)   enum { FaceAttributes = _i }
 Macro for defining the face attributes. See Specifying your MyMesh.
 
#define VertexTraits   template <class Base, class Refs> struct VertexT : public Base
 Macro for defining the vertex traits. See Specifying your MyMesh.
 
#define HalfedgeTraits   template <class Base, class Refs> struct HalfedgeT : public Base
 Macro for defining the halfedge traits. See Specifying your MyMesh.
 
#define EdgeTraits   template <class Base, class Refs> struct EdgeT : public Base
 Macro for defining the edge traits. See Specifying your MyMesh.
 
#define FaceTraits   template <class Base, class Refs> struct FaceT : public Base
 Macro for defining the face traits. See Specifying your MyMesh.
 
#define OM_Merge_Traits(_S1, _S2, _D)   typedef OpenMesh::MergeTraits<_S1, _S2>::Result _D;
 Macro for merging two traits classes _S1 and _S2 into one traits class _D. More...
 
#define OM_Merge_Traits_In_Template(_S1, _S2, _D)   typedef typename OpenMesh::MergeTraits<_S1, _S2>::Result _D;
 Macro for merging two traits classes _S1 and _S2 into one traits class _D. More...
 

Detailed Description

This file defines the default traits and some convenience macros.

Macro Definition Documentation

#define OM_Merge_Traits (   _S1,
  _S2,
  _D 
)    typedef OpenMesh::MergeTraits<_S1, _S2>::Result _D;

Macro for merging two traits classes _S1 and _S2 into one traits class _D.

Note that in case of ambiguities class _S1 overrides _S2, especially the point/normal/color/texcoord type to be used is taken from _S1::Point / _S1::Normal / _S1::Color / _S1::TexCoord

#define OM_Merge_Traits_In_Template (   _S1,
  _S2,
  _D 
)    typedef typename OpenMesh::MergeTraits<_S1, _S2>::Result _D;

Macro for merging two traits classes _S1 and _S2 into one traits class _D.

Same as OM_Merge_Traits, but this can be used inside template classes.


Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .