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];
74 assert((
unsigned int)_h.idx() < kernel_.
n_vertices());
75 vertex_texcoords_available_ =
true;
76 return vtexcoord_prop_[_h];
79 bool vertex_texcoords_available()
const {
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_impl.hh"
size_t n_vertices() const override
Get number of vertices in mesh.