fixes #0004426: [skip ci] Patch to add MinLength and MaxLenght to the Netgen options in the Python API (provided by thomasFreeCAD)

This commit is contained in:
wmayer
2020-09-12 19:34:41 +02:00
parent 89a2151a95
commit f681b86abd
2 changed files with 15 additions and 7 deletions

View File

@@ -357,6 +357,11 @@ Mesh::MeshObject* Mesher::createMesh() const
hyp2d->SetNbSegPerRadius(nbSegPerRadius);
}
if (maxLen > 0)
hyp2d->SetMaxSize(maxLen);
if (minLen > 0)
hyp2d->SetMinSize(maxLen);
hyp2d->SetQuadAllowed(allowquad);
hyp2d->SetOptimize(optimize);
hyp2d->SetSecondOrder(secondOrder); // apply bisecting to create four triangles out of one