Geometry: Add meshing action with mage internal meshing functions.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-20 11:36:46 +01:00
1 parent e965e2b4c1
commit 097b5eb7fc
6 files changed
+313 -12

No files matched your search

+17
View File
@@ -43,6 +43,8 @@ from View.Tools.PamhyrWindow import PamhyrWindow
from View.Tools.Plot.PamhyrToolbar import PamhyrPlotToolbar
from View.Tools.Plot.PamhyrCanvas import MplCanvas
from Meshing.Mage import MeshingWithMage
from View.Geometry.Table import GeometryReachTableModel
from View.Geometry.PlotXY import PlotXY
from View.Geometry.PlotAC import PlotAC
@@ -168,6 +170,7 @@ class GeometryWindow(PamhyrWindow):
"action_add": self.add,
"action_delete": self.delete,
"action_edit": self.edit_profile,
"action_meshing": self.edit_meshing,
}
for action in actions:
@@ -243,6 +246,20 @@ class GeometryWindow(PamhyrWindow):
self.tableView.model().blockSignals(False)
def edit_meshing(self):
self.tableView.model().blockSignals(True)
mesher = MeshingWithMage()
mesher.meshing(self._reach)
self.tableView.model().blockSignals(False)
self.update_profile_windows()
self.plot_xy()
self.plot_kpc()
self.plot_ac()
pyqtSlot(bool)
def changed_profile_slot(self, status):
+6
View File
@@ -126,6 +126,7 @@
<addaction name="action_up"/>
<addaction name="action_down"/>
<addaction name="action_export"/>
<addaction name="action_meshing"/>
</widget>
<action name="action_import">
<property name="text">
@@ -227,6 +228,11 @@
<string>Move down selected cross-section(s)</string>
</property>
</action>
<action name="action_meshing">
<property name="text">
<string>meshing</string>
</property>
</action>
</widget>
<resources/>
<connections/>