Commit b913d769 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Meshing: Mage: Change API of mailleurTT for the next mage version.

Showing with 27 additions and 3 deletions
+27 -3
...@@ -282,7 +282,13 @@ class MeshingWithMageMailleurTT(AMeshingTool): ...@@ -282,7 +282,13 @@ class MeshingWithMageMailleurTT(AMeshingTool):
# Meshing # # 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: if reach is None or len(reach.profiles) == 0:
return reach return reach
...@@ -294,9 +300,27 @@ class MeshingWithMageMailleurTT(AMeshingTool): ...@@ -294,9 +300,27 @@ class MeshingWithMageMailleurTT(AMeshingTool):
proc = QProcess() proc = QProcess()
proc.setWorkingDirectory(tmp) 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( 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() proc.waitForFinished()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment