Geometry: Meshing: Prepare code for next 'mailleurTT' version.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-05-13 14:27:24 +02:00
1 parent db87b1e214
commit ef583fc9bb
7 files changed
+204 -181

No files matched your search

+24 -13
View File
@@ -293,6 +293,7 @@ class MeshingWithMageMailleurTT(AMeshingTool):
def meshing(self, reach,
step: float = 50,
limites=[-1, -1],
origin=0,
directrices=['un', 'np'],
lplan: bool = False,
lm: int = 3,
@@ -310,27 +311,37 @@ class MeshingWithMageMailleurTT(AMeshingTool):
proc = QProcess()
proc.setWorkingDirectory(tmp)
# Mage section index start at 1
origin += 1
limites[0] += 1
limites[1] += 1
lplan = 1 if lplan else 0
linear = 1 if linear else 0
logger.info(
f"! {self._exe_path()} {st_file} {m_file} " +
f"! {self._exe_path()} " +
f"{st_file} {m_file} " +
f"{str(step)} " +
f"{limites[0]} {limites[1]} " +
f"{directrices[0]} {directrices[1]} " +
f"{lplan} {lm} {linear}"
f"{lplan} {lm} {linear} " +
f"mesh {origin}"
)
proc.start(
self._exe_path(),
list(map(
str,
[
st_file, m_file, step,
limites[0], limites[1],
directrices[0], directrices[1],
lplan, lm, linear
]
))
list(
map(
str,
[
st_file, m_file, step,
limites[0], limites[1],
directrices[0], directrices[1],
lplan, lm, linear,
"mesh", origin
]
)
)
)
proc.waitForFinished()
@@ -347,9 +358,9 @@ class MeshingWithMageMailleurTT(AMeshingTool):
logger.error(
f"{logger_color_red()}{errors}{logger_color_reset()}"
)
else:
self.import_m_file(reach, m_file)
return reach
self.import_m_file(reach, m_file)
return reach
def export_reach_to_st(self, reach, tmp):