mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
little smooth
This commit is contained in:
parent
a2a2da13dc
commit
2d03739f4e
@ -430,27 +430,22 @@ namespace netgen
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
auto rev0 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[0]));
|
if (numprim == 2)
|
||||||
auto rev1 = locsurf.Size() > 1 ? dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[1])) : nullptr;
|
|
||||||
if (numprim == 2 && rev0 && rev1)
|
|
||||||
{
|
{
|
||||||
NgArray<Point<3>> pts;
|
auto rev0 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[0]));
|
||||||
bool check = ComputeExtremalPoints (rev0, rev1, pts);
|
auto rev1 = dynamic_cast<const RevolutionFace*> (geometry->GetSurface(locsurf[1]));
|
||||||
if (check)
|
if (rev0 && rev1)
|
||||||
{
|
{
|
||||||
// int cnt_inbox = 0;
|
NgArray<Point<3>> pts;
|
||||||
for (auto p : pts)
|
bool check = ComputeExtremalPoints (rev0, rev1, pts);
|
||||||
if (box.IsIn(p))
|
if (check)
|
||||||
{
|
{
|
||||||
AddPoint (p, layer);
|
for (auto p : pts)
|
||||||
// cnt_inbox++;
|
if (box.IsIn(p))
|
||||||
}
|
AddPoint (p, layer);
|
||||||
return;
|
return;
|
||||||
/*
|
}
|
||||||
if (cnt_inbox == 0)
|
|
||||||
return;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // end if (numprim <= check_crosspoint)
|
} // end if (numprim <= check_crosspoint)
|
||||||
|
Loading…
Reference in New Issue
Block a user