Part: Offset2D: rewrite to use FaceMaker

new features supported:
* fill offset in collective mode when result wires are closed
* offsetting faces in collective mode

Remaining TODOs:
- collective offset of open wires in "skin" mode
This commit is contained in:
DeepSOIC
2016-09-25 18:39:38 +03:00
parent 585fc856bc
commit 08307aa2e5
2 changed files with 246 additions and 259 deletions

View File

@@ -1515,6 +1515,7 @@ void CmdPartOffset::activated(int iMsg)
doCommand(Doc,"App.ActiveDocument.%s.Source = App.ActiveDocument.%s" ,offset.c_str(), shape->getNameInDocument());
doCommand(Doc,"App.ActiveDocument.%s.Value = 1.0",offset.c_str());
updateActive();
doCommand(Gui,"Gui.ActiveDocument.%s.DisplayMode = 'Wireframe'", shape->getNameInDocument());
//if (isActiveObjectValid())
// doCommand(Gui,"Gui.ActiveDocument.hide(\"%s\")",shape->getNameInDocument());
doCommand(Gui,"Gui.ActiveDocument.setEdit('%s')",offset.c_str());