|
|
@ -1,4 +1,4 @@
|
|
|
|
from typing import List, Tuple
|
|
|
|
from typing import List, Tuple, Dict
|
|
|
|
import math
|
|
|
|
import math
|
|
|
|
import numpy
|
|
|
|
import numpy
|
|
|
|
from numpy import pi
|
|
|
|
from numpy import pi
|
|
|
@ -159,6 +159,14 @@ class Arc(Shape):
|
|
|
|
self.poly_num_points = poly_num_points
|
|
|
|
self.poly_num_points = poly_num_points
|
|
|
|
self.poly_max_arclen = poly_max_arclen
|
|
|
|
self.poly_max_arclen = poly_max_arclen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __deepcopy__(self, memo: Dict = None) -> 'Arc':
|
|
|
|
|
|
|
|
memo = {} if memo is None else memo
|
|
|
|
|
|
|
|
new = copy.copy(self)
|
|
|
|
|
|
|
|
new._offset = self._offset.copy()
|
|
|
|
|
|
|
|
new._radii = self._radii.copy()
|
|
|
|
|
|
|
|
new._angles = self._angles.copy()
|
|
|
|
|
|
|
|
return new
|
|
|
|
|
|
|
|
|
|
|
|
def to_polygons(self, poly_num_points: int=None, poly_max_arclen: float=None) -> List[Polygon]:
|
|
|
|
def to_polygons(self, poly_num_points: int=None, poly_max_arclen: float=None) -> List[Polygon]:
|
|
|
|
if poly_num_points is None:
|
|
|
|
if poly_num_points is None:
|
|
|
|
poly_num_points = self.poly_num_points
|
|
|
|
poly_num_points = self.poly_num_points
|
|
|
|