added specializations for HasPerVertexNormal() and HasPerVertexColor().

This commit is contained in:
Marco Di Benedetto 2009-06-28 22:41:05 +00:00
parent 24327b218c
commit e5d07a7d62
1 changed files with 14 additions and 0 deletions

View File

@ -677,6 +677,20 @@ namespace tri
else return VertexType::HasTexCoord();
}
template < class VertexType, class FaceContainerType, class EdgeContainerType >
bool HasPerVertexNormal (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType , EdgeContainerType> & m)
{
if(VertexType::HasNormalOcf()) return m.vert.IsNormalEnabled();
else return VertexType::HasNormal();
}
template < class VertexType, class FaceContainerType, class EdgeContainerType >
bool HasPerVertexColor (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType , EdgeContainerType> & m)
{
if(VertexType::HasColorOcf()) return m.vert.IsColorEnabled();
else return VertexType::HasColor();
}
template < class VertexType, class FaceContainerType, class EdgeContainerType >
bool HasPerVertexCurvature (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m)
{