Removed template default parameter. Now if you use the distortion class you have to specify if you want per vertex or per wedge tex coords.

This commit is contained in:
Paolo Cignoni 2012-10-02 13:42:33 +00:00
parent e6cc513cae
commit 14cffd1f6e
1 changed files with 3 additions and 2 deletions

View File

@ -27,9 +27,10 @@
namespace vcg {
namespace tri{
template <class MeshType, bool PerWedgeFlag=true>
template <class MeshType, bool PerWedgeFlag>
class Distortion
{
public:
typedef typename MeshType::FaceType FaceType;
typedef typename MeshType::VertexType VertexType;
typedef typename MeshType::CoordType CoordType;
@ -149,7 +150,7 @@ namespace vcg {
public:
typedef enum DistType{AreaDist,EdgeDist,AngleDist};
enum DistType{AreaDist,EdgeDist,AngleDist};
///return the absolute difference between angle in 3D space and texture space
///Actually the difference in cos space