PathHelix: Be more liberal in what constitues a straight cylinder
This commit is contained in:
parent
5cb17a6036
commit
837f2eabb8
|
@ -53,9 +53,10 @@ else:
|
|||
|
||||
def z_cylinder(cyl):
|
||||
""" Test if cylinder is aligned to z-Axis"""
|
||||
if cyl.Surface.Axis.x != 0.0:
|
||||
axis = cyl.Surface.Axis
|
||||
if abs(axis.x) > 1e-10 * abs(axis.z):
|
||||
return False
|
||||
if cyl.Surface.Axis.y != 0.0:
|
||||
if abs(axis.y) > 1e-10 * abs(axis.z):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user