Added HasPerVertexRadius(mesh)

This commit is contained in:
Paolo Cignoni 2008-10-31 12:27:37 +00:00
parent 6d59f7000a
commit 4e46ff3be6
1 changed files with 8 additions and 0 deletions

View File

@ -303,6 +303,7 @@ void DisableCurvatureDir() {
CuDV.clear();
}
bool IsRadiusEnabled() const {return RadiusEnabled;}
void EnableRadius() {
assert(VALUE_TYPE::HasRadiusOcf());
RadiusEnabled=true;
@ -606,6 +607,13 @@ namespace tri
template < class, class > class TriMesh;
template < class VertexType, class FaceContainerType >
bool HasPerVertexRadius (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType > & m)
{
if(VertexType::HasRadiusOcf()) return m.vert.IsRadiusEnabled();
else return VertexType::HasRadius();
}
template < class VertexType, class FaceContainerType >
bool HasPerVertexQuality (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType > & m)
{