This commit is contained in:
Theophile Terraz committed 2025-10-13 17:50:15 +02:00
1 parent f16856d23b
commit 0383dc18ae
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ class InternalMeshing(AMeshingTool):
return reach return reach
# we never modify original profiles, we work on copies # we never modify original profiles, we work on copies
m_profiles= self.st_to_m(reach, limites) m_profiles = self.st_to_m(reach, limites)
new_profiles = self.interpolate_transversal_step(m_profiles, new_profiles = self.interpolate_transversal_step(m_profiles,
step) step)
+4 -2
View File
@@ -241,8 +241,8 @@ class UpdateRKCommand(QUndoCommand):
self._new_rks = None self._new_rks = None
def undo(self): def undo(self):
for rk, profile in zip(self._rks, self._reach.profiles): for rk, profile in zip(self._rks, self._reach.profiles):
profile.rk = rk profile.rk = rk
def redo(self): def redo(self):
if self._new_rks is None: if self._new_rks is None:
@@ -254,6 +254,7 @@ class UpdateRKCommand(QUndoCommand):
for rk, profile in zip(self._new_rks, self._reach.profiles): for rk, profile in zip(self._new_rks, self._reach.profiles):
profile.rk = rk profile.rk = rk
class MeshingCommand(QUndoCommand): class MeshingCommand(QUndoCommand):
def __init__(self, reach, mesher, data, tableView): def __init__(self, reach, mesher, data, tableView):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)
@@ -333,6 +334,7 @@ class MeshingCommand(QUndoCommand):
QItemSelectionModel.Select QItemSelectionModel.Select
) )
class PurgeCommand(QUndoCommand): class PurgeCommand(QUndoCommand):
def __init__(self, reach, np_purge): def __init__(self, reach, np_purge):
QUndoCommand.__init__(self) QUndoCommand.__init__(self)