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
This commit is contained in:
J-Dunn
2020-09-27 18:34:31 +01:00
committed by GitHub
parent 2e14b05c8e
commit 3216ca32a8

View File

@@ -2528,11 +2528,11 @@ class OCL_Tool():
# 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
)