mirror of
https://github.com/csirmaz/openscad-py.git
synced 2025-06-26 04:28:33 +02:00
Bugfix
This commit is contained in:
parent
453fdd68c4
commit
7373b2fdde
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ class Cylinder(Object):
|
||||||
length = v.length()
|
length = v.length()
|
||||||
assert length != 0
|
assert length != 0
|
||||||
z = Point([0, 0, 1])
|
z = Point([0, 0, 1])
|
||||||
r = v.cross(z).norm()
|
r = z.cross(v).norm()
|
||||||
rangle = v.angle(z)
|
rangle = v.angle(z)
|
||||||
if r.length() == 0:
|
if r.length() == 0:
|
||||||
# The cylinder is in the Z direction
|
# The cylinder is in the Z direction
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue