diff --git a/vcg/simplex/vertex/component_ocf.h b/vcg/simplex/vertex/component_ocf.h index 5ae5b0b8..f6ac33c3 100644 --- a/vcg/simplex/vertex/component_ocf.h +++ b/vcg/simplex/vertex/component_ocf.h @@ -687,6 +687,12 @@ bool VertexVectorHasPerVertexCurvatureDir(const vertex::vector_ocf & else return VertexType::HasCurvatureDir(); } +template < class VertexType > +bool VertexVectorHasPerVertexTexCoord(const vertex::vector_ocf &fv) +{ + if(VertexType::HasTexCoordOcf()) return fv.IsTexCoordEnabled(); + else return VertexType::HasTexCoord(); +} } }// end namespace vcg #endif