Skip to content

Commit bf3a5ef

Browse files
committed
Default to plane 'xy' in case of unspecified geometry
1 parent 1a38693 commit bf3a5ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/Python/mccodelib/instrgeom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ def _get_points(self):
578578
elif self.plane == 'yz':
579579
return map(lambda p: cen.add(Vector3d(0, p.x, p.y)), square)
580580
else:
581-
raise Exception('DrawCircle: invalid plane argument')
581+
# Fallback to xy
582+
return map(lambda p: cen.add(p), square)
582583

583584
def get_points_on_circle(self, steps=60):
584585
''' returns points on the circle, transformed into the proper plane '''

0 commit comments

Comments
 (0)