43 #ifndef COLORATTRIB_HH_
44 #define COLORATTRIB_HH_
48 #include "../Core/OpenVolumeMeshHandle.hh"
49 #include "OpenVolumeMeshStatus.hh"
50 #include "../Core/PropertyDefines.hh"
51 #include "../Core/TopologyKernel.hh"
53 namespace OpenVolumeMesh {
69 assert((
unsigned int)_h.idx() < vcolor_prop_.size());
70 return vcolor_prop_[_h.idx()];
74 assert((
unsigned int)_h.idx() < kernel_.
n_vertices());
75 return vcolor_prop_[_h.idx()];
81 const ColT& operator[](
const EdgeHandle& _h)
const {
82 assert((
unsigned int)_h.idx() < ecolor_prop_.size());
83 return ecolor_prop_[_h.idx()];
87 assert((
unsigned int)_h.idx() < kernel_.
n_edges());
88 return ecolor_prop_[_h.idx()];
95 assert((
unsigned int)_h.idx() < hecolor_prop_.size());
96 return hecolor_prop_[_h.idx()];
100 assert((
unsigned int)_h.idx() < kernel_.
n_halfedges());
101 return hecolor_prop_[_h.idx()];
107 const ColT& operator[](
const FaceHandle& _h)
const {
108 assert((
unsigned int)_h.idx() < fcolor_prop_.size());
109 return fcolor_prop_[_h.idx()];
113 assert((
unsigned int)_h.idx() < kernel_.
n_faces());
114 return fcolor_prop_[_h.idx()];
121 assert((
unsigned int)_h.idx() < hfcolor_prop_.size());
122 return hfcolor_prop_[_h.idx()];
126 assert((
unsigned int)_h.idx() < kernel_.
n_halffaces());
127 return hfcolor_prop_[_h.idx()];
133 const ColT& operator[](
const CellHandle& _h)
const {
134 assert((
unsigned int)_h.idx() < ccolor_prop_.size());
135 return ccolor_prop_[_h.idx()];
139 assert((
unsigned int)_h.idx() < kernel_.
n_cells());
140 return ccolor_prop_[_h.idx()];
157 #if defined(INCLUDE_TEMPLATES) && !defined(COLORATTRIBT_CC)
158 #include "ColorAttribT.cc"