From ace6a183b3dcf77b8c4e20b602dda2e19e0b37a4 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 24 Jun 2009 20:30:36 +0000 Subject: [PATCH] added a missing HasPerVertexTexture() --- vcg/simplex/vertex/component_ocf.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vcg/simplex/vertex/component_ocf.h b/vcg/simplex/vertex/component_ocf.h index 76b1fe80..4c8bfc17 100644 --- a/vcg/simplex/vertex/component_ocf.h +++ b/vcg/simplex/vertex/component_ocf.h @@ -664,6 +664,13 @@ namespace tri if(VertexType::HasQualityOcf()) return m.vert.IsQualityEnabled(); else return VertexType::HasQuality(); } + + template < class VertexType, class FaceContainerType, class EdgeContainerType > + bool HasPerVertexTexCoord (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType , EdgeContainerType> & m) + { + if(VertexType::HasTexCoordOcf()) return m.vert.IsTexCoordEnabled(); + else return VertexType::HasTexCoord(); + } template < class VertexType, class FaceContainerType, class EdgeContainerType > bool HasPerVertexCurvature (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m)