add meshing parameter giveuptolopenquads

This commit is contained in:
Christopher Lackner 2022-02-15 09:38:20 +01:00
parent c856f9ae6e
commit 4ebaefd10a
3 changed files with 6 additions and 2 deletions

View File

@ -281,8 +281,7 @@ namespace netgen
MeshingParameters mpquad = mp;
// mpquad.giveuptol = 15;
mpquad.giveuptol = 200;
mpquad.giveuptol = mp.giveuptolopenquads;
mpquad.baseelnp = 4;
mpquad.starshapeclass = 1000;
mpquad.check_impossible = qstep == 1; // for prisms only (air domain in trafo)

View File

@ -1295,6 +1295,9 @@ namespace netgen
int giveuptol2d = 200;
/// give up quality class, 3d meshing
int giveuptol = 10;
/// give up quality class for closing open quads, > 100 for
/// free pyramids
int giveuptolopenquads = 15;
/// maximal outer steps
int maxoutersteps = 10;
/// class starting star-shape filling

View File

@ -144,6 +144,8 @@ inline void CreateMPfromKwargs(MeshingParameters& mp, py::kwargs kwargs, bool th
mp.giveuptol2d = py::cast<int>(kwargs.attr("pop")("giveuptol2d"));
if(kwargs.contains("giveuptol"))
mp.giveuptol = py::cast<int>(kwargs.attr("pop")("giveuptol"));
if(kwargs.contains("giveuptolopenquads"))
mp.giveuptolopenquads = py::cast<int>(kwargs.attr("pop")("giveuptolopenquads"));
if(kwargs.contains("maxoutersteps"))
mp.maxoutersteps = py::cast<int>(kwargs.attr("pop")("maxoutersteps"));
if(kwargs.contains("starshapeclass"))