mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
boundarylayers - don't project on not-in-surface-direction
This commit is contained in:
parent
bf02481299
commit
2d70263cda
@ -360,8 +360,11 @@ namespace netgen
|
|||||||
auto v2 = (mesh[prev] - mesh[pi]).Normalize();
|
auto v2 = (mesh[prev] - mesh[pi]).Normalize();
|
||||||
auto v3 = growthvectors[pi];
|
auto v3 = growthvectors[pi];
|
||||||
v3.Normalize();
|
v3.Normalize();
|
||||||
if((v1 * v3 > 1e-12) || (v2 * v3 > 1e-12))
|
auto tol = v1.Length() * 1e-12;
|
||||||
|
if((v1 * v3 > -tol) && (v2 * v3 > -tol))
|
||||||
in_surface_direction.SetBit(sel.GetIndex());
|
in_surface_direction.SetBit(sel.GetIndex());
|
||||||
|
else
|
||||||
|
continue;
|
||||||
|
|
||||||
auto& g = growthvectors[pi];
|
auto& g = growthvectors[pi];
|
||||||
auto ng = n * g;
|
auto ng = n * g;
|
||||||
|
Loading…
Reference in New Issue
Block a user