restricth for occ and stl geometries

This commit is contained in:
Christopher Lackner 2019-08-28 09:52:51 +02:00
parent 76ab713a80
commit 13c17adf87
2 changed files with 7 additions and 0 deletions

View File

@ -1264,6 +1264,9 @@ namespace netgen
}
}
for (auto mspnt : mparam.meshsize_points)
mesh.RestrictLocalH(mspnt.pnt, mspnt.h);
multithread.task = savetask;
}

View File

@ -1369,6 +1369,10 @@ int STLMeshingDummy (STLGeometry* stlgeometry, shared_ptr<Mesh> & mesh, const Me
stlgeometry->GetBoundingBox().PMax() + Vec3d(10, 10, 10),
mparam.grading);
mesh -> LoadLocalMeshSize (mparam.meshsizefilename);
if (mparam.uselocalh)
for (auto mspnt : mparam.meshsize_points)
mesh->RestrictLocalH(mspnt.pnt, mspnt.h);
success = 0;