From 885c7bb9a256788c01d58b916d4392eadad6955d Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Mon, 12 Oct 2015 12:21:51 -0400 Subject: [PATCH] Updated CadQuery library for polygon fix. --- CadQuery/Libs/cadquery/CQ.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CadQuery/Libs/cadquery/CQ.py b/CadQuery/Libs/cadquery/CQ.py index 2671b61..793d507 100644 --- a/CadQuery/Libs/cadquery/CQ.py +++ b/CadQuery/Libs/cadquery/CQ.py @@ -1623,7 +1623,7 @@ class Workplane(CQ): return self.eachpoint(makeCircleWire, useLocalCoordinates=True) - def polygon(self, nSides, diameter): + def polygon(self, nSides, diameter, forConstruction=False): """ Creates a polygon inscribed in a circle of the specified diameter for each point on the stack @@ -1641,7 +1641,7 @@ class Workplane(CQ): for i in range(nSides+1): pnts.append(center + Vector((diameter / 2.0 * math.cos(angle*i)), (diameter / 2.0 * math.sin(angle*i)), 0)) - return Wire.makePolygon(pnts) + return Wire.makePolygon(pnts, forConstruction) return self.eachpoint(_makePolygon, True)