From ec311d36d4cb4dd93777b9967c2e74672a4c6384 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Fri, 15 Dec 2017 07:26:16 -0500 Subject: [PATCH] Updated CadQuery library for a fix that was done to the linear extrusion in 0.17. --- Libs/cadquery/cadquery/freecad_impl/shapes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libs/cadquery/cadquery/freecad_impl/shapes.py b/Libs/cadquery/cadquery/freecad_impl/shapes.py index 16fa39f..62cb2da 100644 --- a/Libs/cadquery/cadquery/freecad_impl/shapes.py +++ b/Libs/cadquery/cadquery/freecad_impl/shapes.py @@ -830,6 +830,8 @@ class Solid(Shape): #make faces for the top and bottom startFace = FreeCADPart.Face(startWires) endFace = FreeCADPart.Face(endWires) + startFace.validate() + endFace.validate() #collect all the faces from the sides faceList = [startFace] @@ -876,6 +878,7 @@ class Solid(Shape): freeCADWires.append(w.wrapped) f = FreeCADPart.Face(freeCADWires) + f.validate() result = f.extrude(vecNormal.wrapped) return Shape.cast(result) @@ -912,6 +915,7 @@ class Solid(Shape): freeCADWires.append(w.wrapped) f = FreeCADPart.Face(freeCADWires) + f.validate() rotateCenter = FreeCAD.Base.Vector(axisStart) rotateAxis = FreeCAD.Base.Vector(axisEnd)