Commit 1c943d8c authored by Christophe Geuzaine's avatar Christophe Geuzaine

don't warn anymore about mixing Delaunay with structured

parent 13461a99
Pipeline #1942 passed with stage
in 61 minutes 56 seconds
......@@ -272,23 +272,6 @@ static bool TooManyElements(GModel *m, int dim)
return false;
}
static bool CancelDelaunayHybrid(GModel *m)
{
if(CTX::instance()->expertMode) return false;
int n = 0;
for(GModel::riter it = m->firstRegion(); it != m->lastRegion(); ++it)
n += (*it)->getNumMeshElements();
if(n)
return !Msg::GetAnswer
("You are trying to generate a mixed structured/unstructured grid using\n"
"the 3D Delaunay algorithm. This algorithm cannot garantee that the\n"
"final mesh will be conforming. (You should probably use the 3D Frontal\n"
"algorithm instead.) Do you really want to continue with the Delaunay?\n\n"
"(To disable this warning in the future, select `Enable expert mode'\n"
"in the option dialog.)", 1, "Cancel", "Continue");
return false;
}
static void Mesh0D(GModel *m)
{
......@@ -802,9 +785,6 @@ static void Mesh3D(GModel *m)
std::vector<GRegion*> delaunay;
std::for_each(m->firstRegion(), m->lastRegion(), meshGRegion(delaunay));
// warn if attempting to use Delaunay for mixed meshes
if(delaunay.size() && CancelDelaunayHybrid(m)) return;
// and finally mesh the delaunay regions (again, this is global; but
// we mesh each connected part separately for performance and mesh
// quality reasons)
......
......@@ -6,6 +6,7 @@ Geometry.OCCTargetUnit = "M";
DefineConstant[
angle = {90, Name "Parameters/wedge angle"}
extrude = {0.01, Name "Parameters/extrusion length (with mesh)"}
];
a() = ShapeFromFile("component8.step");
......@@ -13,3 +14,7 @@ a() = ShapeFromFile("component8.step");
Cylinder(2) = {0,0.15,0, 0,0.2,0, 0.04, angle*2*Pi/360};
BooleanIntersection{ Volume{a(0)}; Delete; }{ Volume{2}; Delete; }
Extrude {0, extrude, 0} {
Surface{1}; Layers{5}; Recombine;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment