- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# Core/Mesh/Traits.hh File Reference

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

`#include <OpenMesh/Core/System/config.hh>`
`#include <OpenMesh/Core/Math/VectorT.hh>`
`#include <OpenMesh/Core/Attributes/Attributes.hh>`
`#include <OpenMesh/Core/Mesh/Kernels/Common/Handles.hh>`

Go to the source code of this file.

## Namespaces
namespace | OpenMesh
## Classes
class | OpenMesh::DefaultTraits
| Base class for all traits. More...
struct | OpenMesh::MergeTraits< _Traits1, _Traits2 >
| Helper class to merge two mesh traits. More...
## Defines
#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.
#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.

## Detailed Description

This file defines the default traits and some convenience macros.

## Define 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/_S1Color/_S1TexCoord.

#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.