removed ambiguos call to lambda function compiler errors
This commit is contained in:
parent
8b9f2ee2bd
commit
9b6d34c238
|
@ -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