Merge branch 'devel' of github.com:cnr-isti-vclab/vcglib into devel
This commit is contained in:
commit
fab7286ff2
|
@ -397,9 +397,9 @@ public:
|
||||||
{
|
{
|
||||||
int folded=0;
|
int folded=0;
|
||||||
|
|
||||||
ForEachFace(m, [&](const FaceType &f){
|
ForEachFace(m, std::function<void (const FaceType&)>([&folded](const FaceType &f){
|
||||||
if(IsFolded(&f)) folded++;
|
if(IsFolded(&f)) folded++;
|
||||||
});
|
}));
|
||||||
|
|
||||||
return folded;
|
return folded;
|
||||||
}
|
}
|
||||||
|
@ -413,9 +413,9 @@ public:
|
||||||
static ScalarType MeshAngleDistortion(const MeshType &m)
|
static ScalarType MeshAngleDistortion(const MeshType &m)
|
||||||
{
|
{
|
||||||
ScalarType UDdist=0;
|
ScalarType UDdist=0;
|
||||||
ForEachFace(m, [&](const FaceType &f){
|
ForEachFace(m, std::function<void (const FaceType&)>([&UDdist](const FaceType &f){
|
||||||
UDdist += AngleDistortion(f)*Area3D(f);
|
UDdist += AngleDistortion(f)*Area3D(f);
|
||||||
});
|
}));
|
||||||
|
|
||||||
return UDdist;
|
return UDdist;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue