Commit Graph

16556 Commits

Author SHA1 Message Date
Gabriel Wicke
4d1baa4261 Merge branch 'master' into flake8_config 2020-05-27 18:53:55 -07:00
Bernd Hahnebach
68807bbbc0 FEM: pref dialog, really set analysis group meshing default to False 2020-05-28 00:47:56 +02:00
Bernd Hahnebach
d4655c8ef9 FEM: analysing group meshing, set default to False 2020-05-28 00:38:06 +02:00
Gabriel Wicke
c50bd32458 Merge branch 'master' into flake8_config 2020-05-27 13:10:17 -07:00
Abdullah Tahiri
b32821d2f2 Sketcher: ViewProvider Grid control
===================================

Encapsulation of grid internals in ViewProviderObject2D, while allowing control via property changes and protected functions.
2020-05-27 19:25:47 +02:00
Abdullah Tahiri
7988d859ab Part: Gui ViewProvider2D Grid Management
========================================

1. The Grid has a default maximum of 10000 lines that is controlled via a new property. The grid is not created (is empty)
if a higher number of lines is necessary. This event is show as a Warning in the Report view.

2. The Grid now checks a new property ShowOnlyInEditMode before deciding whether to show the grid or not. This is a new
mode for ViewProvider2D and derived objects. If the property is set to true (and showGrid is true), the grid is only shown
if the object is in edit mode. If the property is set to false, the grid is shown regardless of whether it is in edit mode
or not (provided that showGrid is true).

3. Grid limits are now encapsulated (private). They can be set via a new function updateGridExtent.
2020-05-27 19:25:47 +02:00
0penBrain
bcf451bac8 [Sketcher] Grid is displayed in 3D view only if sketch is visible 2020-05-27 19:25:47 +02:00
0penBrain
fe04d47b4c [Sketcher] Local settings are correctly restored ; fixes #3952,#4058 2020-05-27 19:25:47 +02:00
0penBrain
b094ca2ed4 [Sketcher] Grid snapping is enabled only if grid is shown 2020-05-27 19:25:47 +02:00
0penBrain
23e26e2ca6 [Sketcher] 'Avoid redundant autoconstraint' is processed only if 'Autoconstraints' is active 2020-05-27 19:25:47 +02:00
0penBrain
fece0f2dfc [Sketcher] Move general settings widget enable/disable logic in TaskSketcherGeneral so ...
... all options are freely accessible in the preferences editor ...
 ... eg. no need to check 'Show Grid' to customize grid size or snap
 Also remove the sparse automatical saving to preferences from sketcher Task pane ...
 ... (some settings were saved, some not)
2020-05-27 19:25:47 +02:00
0penBrain
3528429363 [Sketcher] Fix catching of rendering order change
model()->layoutChanged signal didn't work at all, was never emitted by widget
 Replaced with an eventFilter catching ChildRemoved to further emit the signal
2020-05-27 19:25:47 +02:00
0penBrain
392ad609b4 [Sketcher] Fix saving/loading of rendering order
Wasn't working at all
 Now saved only from preferences editor
2020-05-27 19:25:47 +02:00
0penBrain
cd788bbd28 [Sketcher] Simplify general settings management 2020-05-27 19:25:47 +02:00
0penBrain
2de7560489 [Sketcher] Fix grid size initialization ; fixes #4055 2020-05-27 19:25:47 +02:00
0penBrain
c6fdc526dd [Sketcher] Add missing 'Auto remove redundant' to preferences 2020-05-27 19:25:47 +02:00
Gabriel Wicke
c6b95c4874 Path: Add .flake8 config for path module
Per recent discussion on coding styles:
https://forum.freecadweb.org/viewtopic.php?f=15&t=46845&sid=0500747f06605e659ccd00795c2155ab
2020-05-27 09:41:49 -07:00
Yorik van Havre
51fda743b0 Draft: Added a border around the Draft grid (can be disabled in prefs) 2020-05-27 18:02:04 +02:00
Bernd Hahnebach
8650fb9d16 FEM gmsh mesh, set SecondOrderLinear standard to False 2020-05-27 17:57:05 +02:00
Bernd Hahnebach
65f39cded1 FEM: material task panel, resize input widgets if task panel is resized 2020-05-27 17:56:56 +02:00
Yorik van Havre
2292d5b5c6 Arch: Fixed use of IfcOpenShell serializer 2020-05-27 14:56:53 +02:00
Abdullah Tahiri
9b59de44c2 Sketcher: Enable undo when trimming
===================================

Reported here:
https://forum.freecadweb.org/viewtopic.php?p=311853#p312647
2020-05-26 19:28:35 +02:00
Abdullah Tahiri
b8e41e99e3 Sketcher: Root point selected when endpoint in external geometry point
======================================================================

fixes #3831

Solver Interface getPointId method is only intended for normal geometry, and returns -1 if geoid is out of range, which was misinterpreted as root point selection.
2020-05-26 14:14:00 +02:00
Bernd Hahnebach
a370a67994 FEM: fix some Python object task panels if ther is no analysis 2020-05-26 13:55:45 +02:00
Bernd Hahnebach
0dc2fe0806 FEM: material common obj, fix category attribute 2020-05-26 08:27:27 +02:00
sliptonic
e56c4acb69 Merge pull request #3461 from Russ4262/3D_Surface_updates
Path:  3D Surface and Waterline updates and fixes.
2020-05-25 18:16:31 -05:00
sliptonic
d688b978e3 Merge pull request #3502 from dubstar-04/fixes/op-visibility
[Path] - Don't reset the operations visibility state during document recompute
2020-05-25 12:33:23 -05:00
sliptonic
73682ebf49 Merge pull request #3500 from dubstar-04/feature/setOrigin
[Path] - Feature/Origin Selection
2020-05-25 12:32:57 -05:00
Bernd Hahnebach
c6b485ecc7 FEM: elmer electric force object, change type 2020-05-25 17:59:59 +02:00
Bernd Hahnebach
8d65066e55 FEM: electic force object, add unit tests 2020-05-25 17:56:38 +02:00
sliptonic
d7da64425d Merge pull request #3490 from Russ4262/PathProfileOpenEdgeUpdate
Path: PathProfile - Improve open-edges, messaging, Final Depth initial guess ...
2020-05-25 10:00:26 -05:00
HoWil
cfcb97a2ee FEM electric force equation object, implement in elmer writer 2020-05-25 15:46:02 +02:00
HoWil
137ade8c66 FEM: add elmer electric force equation object 2020-05-25 15:46:00 +02:00
wmayer
be8634d05c Handle clang 10 warnings:
+ fix -Wtautological-bitwise-compare
+ fix -Wimplicit-int-float-conversion
+ fix -Wmisleading-indentation
+ fix -Wrange-loop-construct
+ suppress -Wdeprecated-copy of 3rd party libs
2020-05-25 15:34:43 +02:00
carlopav
c91df6e15d Draft: Edit arc by 3 points bugfix 2020-05-25 13:37:55 +02:00
carlopav
8749a75056 Draft: bugfix on Edit BezCurve 2020-05-25 13:37:55 +02:00
carlopav
aa92bfba80 Draft: Edit bugfix in Wire/BSpline curve editing 2020-05-25 13:37:55 +02:00
carlopav
8926651c0e Draft: Edit support for Part Sphere
.
2020-05-25 13:37:55 +02:00
carlopav
4507a5a21b Draft: Edit support for Part Cone 2020-05-25 13:37:55 +02:00
carlopav
cdbc11e2ad Draft: reordered supported edit objects and support for PartCylinder 2020-05-25 13:37:55 +02:00
carlopav
89d4a6e00c Draft: Edit reordering 1
Started a general refactor to handle all the conversion between global and object coordinate system inside the main methods and just use object coordinates inside object functions.
Draft: Edit reordering 2

Fixed Editing of Part objects according to the new refactor
Draft: fix in autogroup function for dimensions


Draft: fixed Polygon editing when inscribed or circumscribed


Draft: Edit support for Ellipse object


.


Draft: Edit docstrings


Draft: Edit reordering 3


Draft: Fixed Edit for structure object

And also refactor Edit methods that control special object display during editing.
Draft: Fixed edit for arch wall object
2020-05-25 13:37:55 +02:00
carlopav
4e8124e415 Draft: Split Draft Edit into 4 modules
One for interaction handling and 3 for object editing functions, divided between Draft, Part, Arch
2020-05-25 13:37:55 +02:00
carlopav
83b708127d Draft: Cleanup of Draft Edit 2020-05-25 13:37:55 +02:00
vocx-fc
9e50eb4785 Draft: move functions to draftgeoutils.geometry 2020-05-25 13:35:34 +02:00
vocx-fc
c10b006955 Draft: move functions to draftgeoutils.faces 2020-05-25 13:35:34 +02:00
vocx-fc
e1c371281b Draft: move functions to draftgeoutils.sort_edges 2020-05-25 13:35:34 +02:00
vocx-fc
15324a8e72 Draft: move functions to draftgeoutils.intersections 2020-05-25 13:35:34 +02:00
vocx-fc
d1405c9b11 Draft: move functions to draftgeoutils.edges 2020-05-25 13:35:34 +02:00
vocx-fc
378f1583fe Draft: move general functions to draftgeoutils.general
New package for organizing the geometrical utility functions of
the workbench, `draftgeoutils`.

The first submodule is one that deals with general operations.
2020-05-25 13:35:34 +02:00
paul lee
7f27ec750b [ArchWall] Fix Align Right with Multi-Material invalid case problem 2020-05-25 13:34:46 +02:00