[EDGE SUPPORT] Added template parameter to query function to comply mods in vcg/complex/trimesh/base.h
This commit is contained in:
parent
81a4a5b4f5
commit
f80c878644
|
@ -605,31 +605,31 @@ public:
|
||||||
namespace tri
|
namespace tri
|
||||||
{
|
{
|
||||||
|
|
||||||
template < class, class > class TriMesh;
|
template < class, class,class > class TriMesh;
|
||||||
|
|
||||||
template < class VertexType, class FaceContainerType >
|
template < class VertexType, class FaceContainerType, class EdgeContainerType >
|
||||||
bool HasPerVertexRadius (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType > & m)
|
bool HasPerVertexRadius (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m)
|
||||||
{
|
{
|
||||||
if(VertexType::HasRadiusOcf()) return m.vert.IsRadiusEnabled();
|
if(VertexType::HasRadiusOcf()) return m.vert.IsRadiusEnabled();
|
||||||
else return VertexType::HasRadius();
|
else return VertexType::HasRadius();
|
||||||
}
|
}
|
||||||
|
|
||||||
template < class VertexType, class FaceContainerType >
|
template < class VertexType, class FaceContainerType, class EdgeContainerType >
|
||||||
bool HasPerVertexQuality (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType > & m)
|
bool HasPerVertexQuality (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType , EdgeContainerType> & m)
|
||||||
{
|
{
|
||||||
if(VertexType::HasQualityOcf()) return m.vert.IsQualityEnabled();
|
if(VertexType::HasQualityOcf()) return m.vert.IsQualityEnabled();
|
||||||
else return VertexType::HasQuality();
|
else return VertexType::HasQuality();
|
||||||
}
|
}
|
||||||
|
|
||||||
template < class VertexType, class FaceContainerType >
|
template < class VertexType, class FaceContainerType, class EdgeContainerType >
|
||||||
bool HasPerVertexCurvature (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType > & m)
|
bool HasPerVertexCurvature (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m)
|
||||||
{
|
{
|
||||||
if(VertexType::HasCurvatureOcf()) return m.vert.IsCurvatureEnabled();
|
if(VertexType::HasCurvatureOcf()) return m.vert.IsCurvatureEnabled();
|
||||||
else return VertexType::HasCurvature();
|
else return VertexType::HasCurvature();
|
||||||
}
|
}
|
||||||
|
|
||||||
template < class VertexType, class FaceContainerType >
|
template < class VertexType, class FaceContainerType, class EdgeContainerType >
|
||||||
bool HasPerVertexCurvatureDir (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType > & m)
|
bool HasPerVertexCurvatureDir (const TriMesh < vertex::vector_ocf< VertexType > , FaceContainerType, EdgeContainerType > & m)
|
||||||
{
|
{
|
||||||
if(VertexType::HasCurvatureDirOcf()) return m.vert.IsCurvatureDirEnabled();
|
if(VertexType::HasCurvatureDirOcf()) return m.vert.IsCurvatureDirEnabled();
|
||||||
else return VertexType::HasCurvatureDir();
|
else return VertexType::HasCurvatureDir();
|
||||||
|
|
Loading…
Reference in New Issue