This commit is contained in:
Elod Csirmaz 2024-03-03 02:07:13 +00:00
parent 453fdd68c4
commit 7373b2fdde

View file

@ -219,7 +219,7 @@ class Cylinder(Object):
length = v.length()
assert length != 0
z = Point([0, 0, 1])
r = v.cross(z).norm()
r = z.cross(v).norm()
rangle = v.angle(z)
if r.length() == 0:
# The cylinder is in the Z direction