From b49bdfe1f3b61c56e24c51c44445de107bcb2eca Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Sun, 28 Jul 2024 12:10:19 +0200 Subject: [PATCH 1/2] Mesh: Update RemeshGmsh.cpp --- src/Mod/Mesh/Gui/RemeshGmsh.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Mesh/Gui/RemeshGmsh.cpp b/src/Mod/Mesh/Gui/RemeshGmsh.cpp index 978b15cf3640..b49851fbfdbd 100644 --- a/src/Mod/Mesh/Gui/RemeshGmsh.cpp +++ b/src/Mod/Mesh/Gui/RemeshGmsh.cpp @@ -92,7 +92,8 @@ GmshWidget::GmshWidget(QWidget* parent, Qt::WindowFlags fl) FrontalDelaunay = 6, BAMG = 7, FrontalDelaunayForQuads = 8, - PackingOfParallelograms = 9 + PackingOfParallelograms = 9, + QuasiStructuredQuad = 11 }; d->ui.method->addItem(tr("Automatic"), static_cast(Automatic)); @@ -102,6 +103,7 @@ GmshWidget::GmshWidget(QWidget* parent, Qt::WindowFlags fl) d->ui.method->addItem(QString::fromLatin1("BAMG"), static_cast(BAMG)); d->ui.method->addItem(tr("Frontal Quad"), static_cast(FrontalDelaunayForQuads)); d->ui.method->addItem(tr("Parallelograms"), static_cast(PackingOfParallelograms)); + d->ui.method->addItem(tr("Quasi-structured Quad"), static_cast(QuasiStructuredQuad)); } GmshWidget::~GmshWidget() @@ -338,7 +340,7 @@ bool RemeshGmsh::writeProject(QString& inpFile, QString& outFile) << " Exit;\n" << "EndIf\n" << "Merge \"" << stl.filePath() << "\";\n\n" - << "// 2D mesh algorithm (1=MeshAdapt, 2=Automatic, 5=Delaunay, 6=Frontal, 7=BAMG, 8=Frontal Quad, 9=Packing of Parallelograms)\n" + << "// 2D mesh algorithm (1=MeshAdapt, 2=Automatic, 5=Delaunay, 6=Frontal, 7=BAMG, 8=Frontal Quad, 9=Packing of Parallelograms, 11=Quasi-structured Quad)\n" << "Mesh.Algorithm = " << algorithm << ";\n\n" << "// 3D mesh algorithm (1=Delaunay, 2=New Delaunay, 4=Frontal, 7=MMG3D, 9=R-tree, 10=HTX)\n" << "// Mesh.Algorithm3D = 1;\n\n" From 0a50d270eb625047e77fb926e704f642498384eb Mon Sep 17 00:00:00 2001 From: FEA-eng <59876896+FEA-eng@users.noreply.github.com> Date: Sun, 28 Jul 2024 12:11:21 +0200 Subject: [PATCH 2/2] MeshPart: Update Tessellation.cpp --- src/Mod/MeshPart/Gui/Tessellation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/MeshPart/Gui/Tessellation.cpp b/src/Mod/MeshPart/Gui/Tessellation.cpp index edb02c878e71..4121f2052088 100644 --- a/src/Mod/MeshPart/Gui/Tessellation.cpp +++ b/src/Mod/MeshPart/Gui/Tessellation.cpp @@ -607,7 +607,7 @@ bool Mesh2ShapeGmsh::writeProject(QString& inpFile, QString& outFile) << "// mesh algorithm, only a few algorithms are usable with 3D boundary layer " "generation\n" << "// 2D mesh algorithm (1=MeshAdapt, 2=Automatic, 5=Delaunay, 6=Frontal, " - "7=BAMG, 8=DelQuad, 9=Packing of Parallelograms)\n" + "7=BAMG, 8=DelQuad, 9=Packing of Parallelograms, 11=Quasi-structured Quad)\n" << "Mesh.Algorithm = " << algorithm << ";\n" << "// 3D mesh algorithm (1=Delaunay, 2=New Delaunay, 4=Frontal, 7=MMG3D, " "9=R-tree, 10=HTX)\n"