initializer list corrected
This commit is contained in:
parent
5eb0e6cff6
commit
da3c5c2b96
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -244,7 +244,7 @@ inline void ForEachEdge(MeshType &m, Callable action)
|
||||||
{
|
{
|
||||||
for(auto ei=m.edge.begin();ei!=m.edge.end();++ei) {
|
for(auto ei=m.edge.begin();ei!=m.edge.end();++ei) {
|
||||||
action(*ei);
|
action(*ei);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -252,7 +252,7 @@ inline void ForEachEdge(MeshType &m, Callable action)
|
||||||
if(!(*ei).IsD())
|
if(!(*ei).IsD())
|
||||||
{
|
{
|
||||||
action(*ei);
|
action(*ei);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -273,7 +273,7 @@ inline void ForEachTetra(const MeshType &m, Callable action)
|
||||||
{
|
{
|
||||||
for(auto ti = m.tetra.begin(); ti != m.tetra.end(); ++ti) {
|
for(auto ti = m.tetra.begin(); ti != m.tetra.end(); ++ti) {
|
||||||
action(*ti);
|
action(*ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -281,7 +281,7 @@ inline void ForEachTetra(const MeshType &m, Callable action)
|
||||||
if(!(*ti).IsD())
|
if(!(*ti).IsD())
|
||||||
{
|
{
|
||||||
action(*ti);
|
action(*ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -292,7 +292,7 @@ inline void ForEachTetra(MeshType &m, Callable action)
|
||||||
{
|
{
|
||||||
for(auto ti = m.tetra.begin(); ti != m.tetra.end(); ++ti) {
|
for(auto ti = m.tetra.begin(); ti != m.tetra.end(); ++ti) {
|
||||||
action(*ti);
|
action(*ti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue