diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2016-11-18 13:26:35 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 13:26:35 -0200 |
commit | c15033a7834b825999e9da5ef4a5135cfb125b25 (patch) | |
tree | 0f9df38f0369902c55be3e801602e8e0c1866025 /gerber/utils.py | |
parent | 521fe89150c6aaa0ff0954cc8d32e4b6f8009324 (diff) | |
parent | c1b29035218467b496fffed76ea85390461150c7 (diff) | |
download | gerbonara-c15033a7834b825999e9da5ef4a5135cfb125b25.tar.gz gerbonara-c15033a7834b825999e9da5ef4a5135cfb125b25.tar.bz2 gerbonara-c15033a7834b825999e9da5ef4a5135cfb125b25.zip |
Merge pull request #59 from curtacircuitos/render_updates
Render updates
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] |