|
|
|
@ -20,15 +20,14 @@ class Arc(Shape):
|
|
|
|
|
The rotation gives the angle from x-axis, counterclockwise, to the first (x) radius.
|
|
|
|
|
The start and stop angle are measured counterclockwise from the first (x) radius.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
_radii = None # type: numpy.ndarray
|
|
|
|
|
_angles = None # type: numpy.ndarray
|
|
|
|
|
_width = 1.0 # type: float
|
|
|
|
|
_rotation = 0.0 # type: float
|
|
|
|
|
|
|
|
|
|
# Defaults for to_polygons
|
|
|
|
|
poly_num_points = DEFAULT_POLY_NUM_POINTS # type: int
|
|
|
|
|
poly_max_arclen = None # type: float
|
|
|
|
|
__slots__ = ('_radii', '_angles', '_width', '_rotation',
|
|
|
|
|
'poly_num_points', 'poly_max_arclen')
|
|
|
|
|
_radii: numpy.ndarray
|
|
|
|
|
_angles: numpy.ndarray
|
|
|
|
|
_width: float
|
|
|
|
|
_rotation: float
|
|
|
|
|
poly_num_points: int
|
|
|
|
|
poly_max_arclen: float
|
|
|
|
|
|
|
|
|
|
# radius properties
|
|
|
|
|
@property
|
|
|
|
@ -148,6 +147,7 @@ class Arc(Shape):
|
|
|
|
|
mirrored: Tuple[bool] = (False, False),
|
|
|
|
|
layer: int=0,
|
|
|
|
|
dose: float=1.0):
|
|
|
|
|
self.identifier = ()
|
|
|
|
|
self.radii = radii
|
|
|
|
|
self.angles = angles
|
|
|
|
|
self.width = width
|
|
|
|
|