Skip to content

Commit ea98495

Browse files
committed
Fixed when optional arguments in init are specified
1 parent d582ce2 commit ea98495

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bladex/shaft/cylinder_shaft.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ def __init__(self, radius=1.0, height=1.0, orientation=None, origin=None):
2222

2323
if orientation is None:
2424
self.orientation = [1.0, 0.0, 0.0] # default orientation along X
25+
else:
26+
self.orientation = orientation
2527

2628
if origin is None:
2729
self.origin = [0.0, 0.0, 0.0] # default origin at (0,0,0)
30+
else:
31+
self.origin = origin
2832

2933
def generate_solid(self):
3034
"""

0 commit comments

Comments
 (0)