diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-11-18 08:05:57 -0500 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-11-18 08:05:57 -0500 |
commit | a7f1f6ef0fdd9c792b3234931754dac5d81b15e5 (patch) | |
tree | b6f94cadd7e8dace43bb7cae894b61973ae10980 /gerber/utils.py | |
parent | 6b672e98ff36b25e289c0d9e2ccc28337baa3c27 (diff) | |
download | gerbonara-a7f1f6ef0fdd9c792b3234931754dac5d81b15e5.tar.gz gerbonara-a7f1f6ef0fdd9c792b3234931754dac5d81b15e5.tar.bz2 gerbonara-a7f1f6ef0fdd9c792b3234931754dac5d81b15e5.zip |
Finish adding square hole support, fix some primitive calculations, etc.
Diffstat (limited to 'gerber/utils.py')
-rw-r--r-- | gerber/utils.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gerber/utils.py b/gerber/utils.py index c62ad2a..06adfd7 100644 --- a/gerber/utils.py +++ b/gerber/utils.py @@ -25,9 +25,7 @@ files. import os from math import radians, sin, cos -from operator import sub -from copy import deepcopy -from pyhull.convex_hull import ConvexHull +from scipy.spatial import ConvexHull MILLIMETERS_PER_INCH = 25.4 @@ -344,5 +342,4 @@ def listdir(directory, ignore_hidden=True, ignore_os=True): def convex_hull(points): vertices = ConvexHull(points).vertices - return [points[idx] for idx in - set([point for pair in vertices for point in pair])] + return [points[idx] for idx in vertices] |