mirror of https://gitlab.com/pamhyr/pamhyr2
remove GL doublons
parent
a738bf3679
commit
eae1f83a73
|
|
@ -762,10 +762,11 @@ class Reach(SQLSubModel):
|
|||
# on double le point a gauche
|
||||
new_profiles[isect].insert_point(j0,new_profiles[isect].points[j0])
|
||||
beta[j0]=beta[j0-1]
|
||||
new_profiles[isect].points[j0+1].name('')
|
||||
else:
|
||||
p = PointXYZ(x = (1.0-ratio)*new_profiles[isect].points[j0].x + ratio*new_profiles[isect].points[j0].x,
|
||||
y = (1.0-ratio)*new_profiles[isect].points[j0].y + ratio*new_profiles[isect].points[j0].y,
|
||||
z = (1.0-ratio)*new_profiles[isect].points[j0].z + ratio*new_profiles[isect].points[j0].z,
|
||||
z = (1.0-ratio)*new_profiles[isect].points[j0].z + ratio*new_profiles[isect].points[j0].z
|
||||
)
|
||||
new_profiles[isect].insert_point(j0,p)
|
||||
|
||||
|
|
@ -815,6 +816,7 @@ class Reach(SQLSubModel):
|
|||
if (ratio < 0.0):
|
||||
# on double le point a gauche
|
||||
new_profiles[isect].insert_point(j0,new_profiles[isect].points[j0])
|
||||
new_profiles[isect].points[j0+1].name('')
|
||||
beta[j0]=beta[j0-1]
|
||||
else:
|
||||
p = PointXYZ(x = (1.0-ratio)*new_profiles[isect].points[j0].x + ratio*new_profiles[isect].points[j0].x,
|
||||
|
|
|
|||
Loading…
Reference in New Issue