mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
add meshing parameter giveuptolopenquads
This commit is contained in:
parent
c856f9ae6e
commit
4ebaefd10a
@ -281,8 +281,7 @@ namespace netgen
|
|||||||
|
|
||||||
MeshingParameters mpquad = mp;
|
MeshingParameters mpquad = mp;
|
||||||
|
|
||||||
// mpquad.giveuptol = 15;
|
mpquad.giveuptol = mp.giveuptolopenquads;
|
||||||
mpquad.giveuptol = 200;
|
|
||||||
mpquad.baseelnp = 4;
|
mpquad.baseelnp = 4;
|
||||||
mpquad.starshapeclass = 1000;
|
mpquad.starshapeclass = 1000;
|
||||||
mpquad.check_impossible = qstep == 1; // for prisms only (air domain in trafo)
|
mpquad.check_impossible = qstep == 1; // for prisms only (air domain in trafo)
|
||||||
|
@ -1295,6 +1295,9 @@ namespace netgen
|
|||||||
int giveuptol2d = 200;
|
int giveuptol2d = 200;
|
||||||
/// give up quality class, 3d meshing
|
/// give up quality class, 3d meshing
|
||||||
int giveuptol = 10;
|
int giveuptol = 10;
|
||||||
|
/// give up quality class for closing open quads, > 100 for
|
||||||
|
/// free pyramids
|
||||||
|
int giveuptolopenquads = 15;
|
||||||
/// maximal outer steps
|
/// maximal outer steps
|
||||||
int maxoutersteps = 10;
|
int maxoutersteps = 10;
|
||||||
/// class starting star-shape filling
|
/// class starting star-shape filling
|
||||||
|
@ -144,6 +144,8 @@ inline void CreateMPfromKwargs(MeshingParameters& mp, py::kwargs kwargs, bool th
|
|||||||
mp.giveuptol2d = py::cast<int>(kwargs.attr("pop")("giveuptol2d"));
|
mp.giveuptol2d = py::cast<int>(kwargs.attr("pop")("giveuptol2d"));
|
||||||
if(kwargs.contains("giveuptol"))
|
if(kwargs.contains("giveuptol"))
|
||||||
mp.giveuptol = py::cast<int>(kwargs.attr("pop")("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"))
|
if(kwargs.contains("maxoutersteps"))
|
||||||
mp.maxoutersteps = py::cast<int>(kwargs.attr("pop")("maxoutersteps"));
|
mp.maxoutersteps = py::cast<int>(kwargs.attr("pop")("maxoutersteps"));
|
||||||
if(kwargs.contains("starshapeclass"))
|
if(kwargs.contains("starshapeclass"))
|
||||||
|
Loading…
Reference in New Issue
Block a user