little smooth

This commit is contained in:
Joachim Schöberl 2020-10-20 12:35:17 +02:00
parent a2a2da13dc
commit 2d03739f4e

View File

@ -431,26 +431,21 @@ namespace netgen
}
if (numprim == 2)
{
auto rev0 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[0]));
auto rev1 = locsurf.Size() > 1 ? dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[1])) : nullptr;
if (numprim == 2 && rev0 && rev1)
auto rev1 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[1]));
if (rev0 && rev1)
{
NgArray<Point<3>> pts;
bool check = ComputeExtremalPoints (rev0, rev1, pts);
if (check)
{
// int cnt_inbox = 0;
for (auto p : pts)
if (box.IsIn(p))
{
AddPoint (p, layer);
// cnt_inbox++;
return;
}
return;
/*
if (cnt_inbox == 0)
return;
*/
}
}
} // end if (numprim <= check_crosspoint)