43 #define TEXCOORDATTRIBT_CC
45 #include "TexCoordAttrib.hh"
49 template <
class TexCoordT>
50 TexCoordAttrib<TexCoordT>::TexCoordAttrib(TopologyKernel& _kernel,
const TexCoordT _def) :
51 vtexcoord_prop_(_kernel.request_vertex_property<TexCoordT>(
"vertex_texcoord", _def)),
53 vertex_texcoords_available_(false),
54 default_texcoord_(_def)
59 template <
class TexCoordT>
60 TexCoordAttrib<TexCoordT>::~TexCoordAttrib() {
64 template <
class TexCoordT>
65 void TexCoordAttrib<TexCoordT>::clear_vertex_texcoords()
67 for (VertexIter v_it = kernel_.vertices_begin(); v_it != kernel_.vertices_end(); ++v_it)
68 vtexcoord_prop_[v_it->idx()] = default_texcoord_;
69 vertex_texcoords_available_ =
false;