FreeCAD: master ec5f3b2b
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
Abdullah Tahiri | wmayer | master | 2015-06-12 17:01:47 | master 61bd2d41 |
Changeset | Sketcher: new Feature: Group creation of Sketcher geometry and other improvements and bug fixes =============================================================================================== Group creation: - complex geometries (consisting of several geometry elements and constraints) have been rewritten to use python list (one command call for all geometries and constraints) - Ellipse ExposeInternalGeo as group creation of geometries and constraints To construction mode creation: - addGeometry python and SketchObject functions modified to take an additional optional parameter "construction" to create the geometry/geometries directly as construction. In addition to the shorter form, this helps generate less amount of onChange propagation and Redraws. - all the geometry creation commands in CommandCreateGeo.cpp have been rewritten to use the new construction argument. This includes modifying the regular polygon script to take a new optional parameter to create geometry as construction in addGeometry. - special care is taken in group creation not make construction points - Show/hide internal geometry implemented with this option. To solving: - the solve previously included after every geometry addition (when in no Update, e.i. no Recompute mode) has been removed and each Gui::Command calls either an UpdateActive for recompute or a Solve in no Update mode. This is behaviour is less intrusive and uniform with group creation. Bug fixes and redrawing reduction: - Fixes the CheckId exception problem. The solution also helps further remove redraws during creation of complex geometry (e.g. Slot) - Fixes touching the sketch by only opening it. - Code clean up. |
|||
mod - src/Mod/Sketcher/App/SketchObject.cpp | Diff File | |||
mod - src/Mod/Sketcher/App/SketchObject.h | Diff File | |||
mod - src/Mod/Sketcher/App/SketchObjectPyImp.cpp | Diff File | |||
mod - src/Mod/Sketcher/Gui/CommandCreateGeo.cpp | Diff File | |||
mod - src/Mod/Sketcher/Gui/CommandSketcherTools.cpp | Diff File | |||
mod - src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | Diff File | |||
mod - src/Mod/Sketcher/ProfileLib/RegularPolygon.py | Diff File |