diff --git a/libsrc/meshing/boundarylayer.cpp b/libsrc/meshing/boundarylayer.cpp index d9566e72..d22ee6c6 100644 --- a/libsrc/meshing/boundarylayer.cpp +++ b/libsrc/meshing/boundarylayer.cpp @@ -227,6 +227,11 @@ struct GrowthVectorLimiter { auto seg = GetSeg(pi_to, seg_shift, true); + for (auto pi : mesh[sei].PNums()) { + if (pi == pi_from) return false; + if (map_from[pi] == pi_from) return false; + } + if(check_prism_sides) { for(auto i : Range(3)) { auto side = GetSideTrig(sei, i, trig_shift, true);