initializer list corrected

This commit is contained in:
Luigi Malomo 2021-11-29 12:15:37 +01:00
parent 5eb0e6cff6
commit da3c5c2b96
2 changed files with 7 additions and 7 deletions

View File

@ -685,7 +685,7 @@ private:
testSwap(pi, params.creaseAngleCosThr) && testSwap(pi, params.creaseAngleCosThr) &&
// face::CheckFlipEdge(f, i) && // face::CheckFlipEdge(f, i) &&
face::CheckFlipEdgeNormal(f, i, float(vcg::math::ToRad(5.))) && face::CheckFlipEdgeNormal(f, i, float(vcg::math::ToRad(5.))) &&
(!params.surfDistCheck || testHausdorff(*params.mProject, params.grid, { swapEdgeMidPoint }, params.maxSurfDist))) (!params.surfDistCheck || testHausdorff(*params.mProject, params.grid, {{ swapEdgeMidPoint }}, params.maxSurfDist)))
{ {
//When doing the swap we need to preserve and update the crease info accordingly //When doing the swap we need to preserve and update the crease info accordingly
FaceType* g = f.cFFp(i); FaceType* g = f.cFFp(i);
@ -872,7 +872,7 @@ private:
}; };
if (!testHausdorff(*(params.mProject), params.grid, points, params.maxSurfDist) || if (!testHausdorff(*(params.mProject), params.grid, points, params.maxSurfDist) ||
!testHausdorff(*(params.mProject), params.grid, { (v1->cP() + v2->cP() + mp) / 3. }, params.maxSurfDist, newN)) !testHausdorff(*(params.mProject), params.grid, {{ (v1->cP() + v2->cP() + mp) / 3. }}, params.maxSurfDist, newN))
return false; return false;
} }
} }