diff --git a/src/Meshing/Mage.py b/src/Meshing/Mage.py index bd60ed1c147dc8867e7846bdec0f58f631caff22..e306bc9f72b17e1c4f271986e6c228ab8d5adfe8 100644 --- a/src/Meshing/Mage.py +++ b/src/Meshing/Mage.py @@ -282,7 +282,13 @@ class MeshingWithMageMailleurTT(AMeshingTool): # Meshing # ########### - def meshing(self, reach, step: float = 50): + def meshing(self, reach, + step: float = 50, + limites=[-1, -1], + directrices=['un', 'np'], + lplan: bool = False, + lm: int = 3, + lineaire: bool = False): if reach is None or len(reach.profiles) == 0: return reach @@ -294,9 +300,27 @@ class MeshingWithMageMailleurTT(AMeshingTool): proc = QProcess() proc.setWorkingDirectory(tmp) - logger.info(f"! mailleurTT {st_file} {m_file} {str(step)}") + lplan = 1 if lplan else 0 + lineaire = 1 if lineaire else 0 + + logger.info( + f"! mailleurTT {st_file} {m_file} " + + f"{str(step)} " + + f"{limites[0]} {limites[1]} " + + f"{directrices[0]} {directrices[1]} " + + f"{lplan} {lm} {lineaire}" + ) proc.start( - self._exe_path(), [st_file, m_file, str(step)] + self._exe_path(), + list(map( + str, + [ + st_file, m_file, step, + limites[0], limites[1], + directrices[0], directrices[1], + lplan, lm, lineaire + ] + )) ) proc.waitForFinished()