Converted MillFace to be based on PathAreaop.
This commit is contained in:
committed by
Yorik van Havre
parent
6b8960d125
commit
4e8d0cbea3
@@ -46,6 +46,9 @@ def translate(context, text, disambig=None):
|
||||
|
||||
class ObjectPocket(PathAreaOp.ObjectOp):
|
||||
|
||||
def opFeatures(self, obj):
|
||||
return PathAreaOp.FeatureTool | PathAreaOp.FeatureDepths | PathAreaOp.FeatureHeights | PathAreaOp.FeatureStartPoint | PathAreaOp.FeatureBaseFaces | PathAreaOp.FeatureFinishDepth
|
||||
|
||||
def initOperation(self, obj):
|
||||
PathLog.track()
|
||||
|
||||
@@ -61,9 +64,6 @@ class ObjectPocket(PathAreaOp.ObjectOp):
|
||||
obj.OffsetPattern = ['ZigZag', 'Offset', 'Spiral', 'ZigZagOffset', 'Line', 'Grid', 'Triangle']
|
||||
obj.addProperty("App::PropertyBool", "MinTravel", "Pocket", QtCore.QT_TRANSLATE_NOOP("App::Property", "Use 3D Sorting of Path"))
|
||||
|
||||
def opFeatures(self, obj):
|
||||
return PathAreaOp.FeatureTool | PathAreaOp.FeatureDepths | PathAreaOp.FeatureHeights | PathAreaOp.FeatureStartPoint | PathAreaOp.FeatureBaseFaces | PathAreaOp.FeatureFinishDepth
|
||||
|
||||
def opUseProjection(self, obj):
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user