added a missing HasPerVertexTexture()

This commit is contained in:
Paolo Cignoni 2009-06-24 20:30:36 +00:00
parent a88ee5b244
commit ace6a183b3
1 changed files with 7 additions and 0 deletions

View File

@ -665,6 +665,13 @@ namespace tri
else return VertexType::HasQuality(); 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 > template < class VertexType, class FaceContainerType, class EdgeContainerType >
bool HasPerVertexCurvature (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m) bool HasPerVertexCurvature (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m)
{ {