added specializations for HasPerVertexNormal() and HasPerVertexColor().
This commit is contained in:
parent
24327b218c
commit
e5d07a7d62
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue