From 1830c14bb0fc7e87d009ffa51515a6b33e1282c3 Mon Sep 17 00:00:00 2001 From: J-Dunn Date: Sun, 27 Sep 2020 18:34:31 +0100 Subject: [PATCH] Add files via upload fix 3Dsurface bugs: variable name error and OCL using half tip angle. https://forum.freecadweb.org/viewtopic.php?f=15&t=50570 --- src/Mod/Path/PathScripts/PathSurfaceSupport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathSurfaceSupport.py b/src/Mod/Path/PathScripts/PathSurfaceSupport.py index 2c377b499bd3..fc813bcf5b71 100644 --- a/src/Mod/Path/PathScripts/PathSurfaceSupport.py +++ b/src/Mod/Path/PathScripts/PathSurfaceSupport.py @@ -2528,11 +2528,11 @@ def _oclConeCutter(self): # Engraver or V-bit cutter # OCL -> ConeCutter::ConeCutter(diameter, angle, length) if (self.diameter == -1.0 or - self.cuttingEdgeAngle == -1.0 or self.cutEdgeHeight == -1.0): + self.cutEdgeAngle == -1.0 or self.cutEdgeHeight == -1.0): return self.oclTool = self.ocl.ConeCutter( self.diameter, - self.cuttingEdgeAngle, + self.cutEdgeAngle/2., self.cutEdgeHeight + self.lengthOffset )