43 #ifndef TEXCOORDATTRIB_HH_ 44 #define TEXCOORDATTRIB_HH_ 48 #include "../Core/OpenVolumeMeshHandle.hh" 49 #include "OpenVolumeMeshStatus.hh" 50 #include "../Core/PropertyDefines.hh" 51 #include "../Core/TopologyKernel.hh" 57 template <
class TexCoordT>
68 const TexCoordT& operator[](
const VertexHandle& _h)
const {
69 assert((
unsigned int)_h.idx() < kernel_.
n_vertices());
70 return vtexcoord_prop_[_h.idx()];
74 assert((
unsigned int)_h.idx() < kernel_.
n_vertices());
75 vertex_texcoords_available_ =
true;
76 return vtexcoord_prop_[_h.idx()];
79 bool vertex_texcoords_available() {
return vertex_texcoords_available_; }
81 void clear_vertex_texcoords();
90 bool vertex_texcoords_available_;
92 TexCoordT default_texcoord_;
98 #if defined(INCLUDE_TEMPLATES) && !defined(TEXCOORDATTRIBT_CC) 99 #include "TexCoordAttribT.cc"
virtual size_t n_vertices() const
Get number of vertices in mesh.