Skip to content

Commit

Permalink
Mesh: Update RemeshGmsh.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Jul 28, 2024
1 parent 00990cb commit b49bdfe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mod/Mesh/Gui/RemeshGmsh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(Automatic));
Expand All @@ -102,6 +103,7 @@ GmshWidget::GmshWidget(QWidget* parent, Qt::WindowFlags fl)
d->ui.method->addItem(QString::fromLatin1("BAMG"), static_cast<int>(BAMG));
d->ui.method->addItem(tr("Frontal Quad"), static_cast<int>(FrontalDelaunayForQuads));
d->ui.method->addItem(tr("Parallelograms"), static_cast<int>(PackingOfParallelograms));
d->ui.method->addItem(tr("Quasi-structured Quad"), static_cast<int>(QuasiStructuredQuad));
}

GmshWidget::~GmshWidget()
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b49bdfe

Please sign in to comment.