scenarios
Theophile Terraz 2025-10-29 17:13:09 +01:00
parent 7990a60d8b
commit 879c151524
2 changed files with 6 additions and 5 deletions

View File

@ -311,7 +311,7 @@ class InternalMeshing(AMeshingTool):
frictions = reach._parent.frictions
old_begin_rk = list(map(lambda x: x * old_orientation,
begin_rk))
begin_rk))
old_end_rk = list(map(lambda x: x * old_orientation,
end_rk))
old_rk = list(map(lambda x: x * old_orientation,

View File

@ -258,10 +258,11 @@ class UpdateRKCommand(QUndoCommand):
def redo(self):
if self._new_rks is None:
self._new_rks, self._new_begin_rk, self._new_end_rk = self._mesher.update_rk(
self._reach, self._begin_rk, self._end_rk,
**self._data
)
self._new_rks, self._new_begin_rk, self._new_end_rk = \
self._mesher.update_rk(
self._reach, self._begin_rk, self._end_rk,
**self._data
)
for rk, profile in zip(self._new_rks, self._reach.profiles):
profile.rk = rk