mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-19 08:43:07 +05:00
More tolerance for boundary layer smoothing along inner edges
This commit is contained in:
parent
6f574ec191
commit
a8a75614c0
@ -132,7 +132,7 @@ void BoundaryLayerTool ::InterpolateGrowthVectors()
|
|||||||
auto& seg = *p_seg;
|
auto& seg = *p_seg;
|
||||||
faces.SetSize(0);
|
faces.SetSize(0);
|
||||||
// if (seg[0] <= p2sel.Size())
|
// if (seg[0] <= p2sel.Size())
|
||||||
if (seg[0] < IndexBASE<PointIndex>()+p2sel.Size())
|
if (seg[0] < IndexBASE<PointIndex>() + p2sel.Size())
|
||||||
{
|
{
|
||||||
for (auto sei : p2sel[seg[0]])
|
for (auto sei : p2sel[seg[0]])
|
||||||
if (moved_surfaces.Test(mesh[sei].GetIndex()) && p2sel[seg[1]].Contains(sei))
|
if (moved_surfaces.Test(mesh[sei].GetIndex()) && p2sel[seg[1]].Contains(sei))
|
||||||
@ -143,7 +143,7 @@ void BoundaryLayerTool ::InterpolateGrowthVectors()
|
|||||||
{
|
{
|
||||||
auto n0 = getNormal(mesh[faces[0]]);
|
auto n0 = getNormal(mesh[faces[0]]);
|
||||||
auto n1 = getNormal(mesh[faces[1]]);
|
auto n1 = getNormal(mesh[faces[1]]);
|
||||||
if (n0 * n1 < 0.999)
|
if (n0 * n1 < 0.9)
|
||||||
no_angles = false;
|
no_angles = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user