4th-axis fixes and improvements

Fix rotational orientation of pockets.  Need to apply same fix to ProfileFaces.
Fix final depth issue based upon error in rotational orientation fixed here.
Add property, `LimitDepthToFace` to facilitate easier pockets and face profiling on rotational-enabled operations.
Hide rotational support properties when operations do not use rotation.
Remove unnecessary property, `B_AxisErrorOverride`, and delete dead code that used it.
This commit is contained in:
Russell Johnson
2020-03-14 11:36:11 -05:00
parent feb6210672
commit 022c14d75b
6 changed files with 191 additions and 126 deletions

View File

@@ -34,12 +34,14 @@ __url__ = "http://www.freecadweb.org"
__doc__ = "Base class and implementation for Path pocket operations."
PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
#PathLog.trackModule(PathLog.thisModule())
# PathLog.trackModule(PathLog.thisModule())
# Qt translation handling
def translate(context, text, disambig=None):
return QtCore.QCoreApplication.translate(context, text, disambig)
class ObjectPocket(PathAreaOp.ObjectOp):
'''Base class for proxy objects of all pocket operations.'''
@@ -130,6 +132,7 @@ class ObjectPocket(PathAreaOp.ObjectOp):
params['threshold'] = self.radius * 2
return params
def SetupProperties():
setup = []
setup.append('CutMode')