Only check for self-intersection on moved boundaries

This commit is contained in:
Matthias Hochsteger 2024-10-24 15:50:21 +02:00
parent 54e5de4395
commit 72e25d45a4

View File

@ -308,10 +308,12 @@ struct GrowthVectorLimiter
for (SurfaceElementIndex sei : mesh.SurfaceElements().Range())
{
auto sel = mesh[sei];
const auto& fd = mesh.GetFaceDescriptor(sel.GetIndex());
if (!tool.moved_surfaces[sel.GetIndex()])
continue;
if (sel.GetNP() == 4)
continue;
const auto& fd = mesh.GetFaceDescriptor(sel.GetIndex());
auto np = sel.GetNP();
double shift = 1.0;