Commit d74c78ef authored by Theophile Terraz's avatar Theophile Terraz
Browse files

get GL order for meshing

Showing with 6 additions and 3 deletions
+6 -3
...@@ -188,7 +188,9 @@ class MeshingWithMage(AMeshingTool): ...@@ -188,7 +188,9 @@ class MeshingWithMage(AMeshingTool):
ns, npts_max = self.get_reach_stat() ns, npts_max = self.get_reach_stat()
gl = reach.compute_guidelines() gl = reach.compute_guidelines()
self.complete_cross_section(gl[0]) # we make sure that the lines are in the left-ti-right order
guide_list = [x.name for x in reach.profiles[0].named_points() if x in gl[0]]
self.complete_cross_section(guide_list)
self.interpolate_cross_section(ns, step) self.interpolate_cross_section(ns, step)
self.purge() self.purge()
...@@ -221,8 +223,9 @@ class MeshingWithMage(AMeshingTool): ...@@ -221,8 +223,9 @@ class MeshingWithMage(AMeshingTool):
return ns, npts_max return ns, npts_max
def complete_cross_section(self, gl=[]): def complete_cross_section(self, gl=[]):
gl1 = ["un"]+list(gl) gl1 = ["un"]+gl
gl2 = list(gl)+["np"] gl2 = gl+["np"]
print (gl1)
for l in zip(gl1, gl2): for l in zip(gl1, gl2):
self.st_to_m_compl(0, l[0], l[1]) self.st_to_m_compl(0, l[0], l[1])
......
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