mirror of https://gitlab.com/pamhyr/pamhyr2
Meshing: Mage: Change API of mailleurTT for the next mage version.
parent
ab276db78c
commit
b913d76972
|
|
@ -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):
|
||||||
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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue