Commit Graph

21066 Commits

Author SHA1 Message Date
Russell Johnson
ffc353f294 Path: Fix for .extrude() vector roughly zero 2020-05-13 21:55:06 -05:00
Russell Johnson
a679356b48 Path: Add if edge: test clause
`If edge:` handles 'NoneType' edges returned from `PathGeom.edgeForCmd()`.
Includes some PEP8 formatting.
2020-05-13 21:55:06 -05:00
Russell Johnson
58ba0e1c39 Path: Fix related to linkStockAndModel checkbox.
The StockEdit class is reused by BoundaryDressup, and this checkbox does not exist in its UI panel.
2020-05-13 16:34:06 -05:00
Bernd Hahnebach
b5beab8f83 FEM: code conventions, update flake8 command 2020-05-13 18:00:45 +02:00
Bernd Hahnebach
8796d7bc11 FEM: App and Gui init script:
- improve imports
- add comments
- some code formating
2020-05-13 17:58:05 +02:00
Yorik van Havre
4fa967b240 Arch: Fixed export of non-ortho extrusions to IFC 2020-05-13 14:12:37 +02:00
Zheng, Lei
e6f4a1797c Gui: reset model transformation scaling in SoAutoZoomTranslation 2020-05-13 13:21:58 +02:00
vocx-fc
dd42bfbc92 Draft: migrate individual properties
Since we know how the old class looks like,
we can write code to save the value of the older properties,
and then remove them.

Then we can assign the new class, which will create new properties,
and then we can assign the old values to these.

This can be done for both the proxy object and
for the viewprovider.
2020-05-13 11:37:56 +02:00
vocx-fc
16d8986ff6 Draft: use onDocumentRestored to migrate the Fillet
Identify the previous object as `DraftFillet.Fillet`
and then use the new proxy class `draftobjects.fillet.Fillet`
and new viewprovider `view_fillet.ViewProviderFillet` on it.
2020-05-13 11:37:56 +02:00
vocx-fc
d438aec821 Draft: remove old DraftFillet class, and make it a redirect
Remove the make function that creates the old object,
its corresponding Gui Command, and the old `DraftFillet.Fillet`
proxy class, which now is a redirection to the new `Fillet`
class defined in `draftobjects.fillet`.

Also change the unit test, and the `draft_test_object` script
to run `Draft.make_fillet`.
2020-05-13 11:37:56 +02:00
vocx-fc
68e6d8d164 Draft: activate both Fillet commands to test
In this moment the old fillet tool is `Draft_Fillet`
and the new tool is `Draft_Fillet_new`. They are imported both,
so they can both be tested from the interface.
2020-05-13 11:37:56 +02:00
vocx-fc
c17546557d Draft: add new Gui Command for Fillet 2020-05-13 11:37:56 +02:00
vocx-fc
d437242924 Draft: split Fillet code into various modules
The original code was in `DraftFillet.py` which is split
into a different modules like the rest of the workbench.

The object code is in `draftobjects`, the viewprovider
is in `draftviewproviders`, and the function to create it
is in `draftmake`.
2020-05-13 11:37:56 +02:00
Zolko
fc4e83ad63 setting Datum Line size manually 2020-05-13 11:23:28 +02:00
wmayer
17c79f19e2 Gui: [skip ci] rename Std_ExportGraphviz to Std_DependencyGraph 2020-05-13 10:26:57 +02:00
wandererfan
dc007c1893 [TD]Highlight colour set in wrong class 2020-05-12 22:52:40 -04:00
wandererfan
5e0165bc4a [TD]Fix wrong scale in Section 2020-05-12 22:52:40 -04:00
sliptonic
9c27f1078e Merge pull request #3443 from Russ4262/UnifiedProfile
Path:  Combine Contour, Profile Faces and Profile Edges into unified Profile operation
2020-05-12 12:06:36 -05:00
wmayer
99ab82ed0b Mesh: [skip ci] cleanup cylinder fit 2020-05-12 15:11:01 +02:00
wmayer
6b022b277a PartDesign: [skip ci] fix ambiguous widget name 2020-05-12 14:30:53 +02:00
Armandas Jarušauskas
4669b6c88d Fixed issues introduced in #3456
- Copy-paste error when setting angle dimensions.
- Max angle limit set to 180 degrees.
2020-05-12 14:29:28 +02:00
wandererfan
1f1d329fda [TD]fix vertical section line and scale 2020-05-12 07:47:51 -04:00
wmayer
1bd131250a TechDraw: [skip ci] fix -Wconstant-logical-operand 2020-05-12 13:25:27 +02:00
Yorik van Havre
b9fc0fb8d4 Arch: Fixed IFC export of Part Extrusions 2020-05-12 11:16:30 +02:00
carlopav
64619a615a Draft: Bugfix to getCloneBase after objects splitting 2020-05-12 10:37:20 +02:00
luz.paz
6df8201186 Fix typos [skip-ci]
Found via codespell v1.17.0.dev0  
``` 
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-05-12 10:04:29 +02:00
carlopav
f433d7f63d Draft: bugfix in Snapper 2020-05-12 10:03:52 +02:00
vocx-fc
8d0350ef0c Draft: small updates to the Annotation class
This annotation class implements `onDocumentRestored`
in order to add the `ScaleMultiplier` property to older
`Dimension`, `Label`, and `Text` objects.
2020-05-12 10:02:21 +02:00
vocx-fc
5bff654a71 Draft: update ViewProviderWire properties
The improvements are done to `ViewProviderWire` which propagates
to many objects like Line, Wire (polyline), BSpline, BezCurve,
Fillet, etc.

The initialization of the properties is moved to a method
`_set_properties`. The properties `EndArrow`, `ArrowSize`,
`ArrowType` are created only if they do not exist.

This allows calling `ViewProviderWire(obj.ViewObject)`
to migrate an older object to this viewprovider
but without adding duplicated properties.

In particular, this is done to support the migration of the older
`Fillet` object.
2020-05-12 10:02:21 +02:00
vocx-fc
be1412831b Draft: update ViewProviderDraft properties
The improvements are done to `ViewProviderDraft` which propagates
to the majority of the Draft objects by derived classes
like `ViewProviederWire`.

The initialization of the properties is moved to a method
`_set_properties`. The properties `Pattern` and `PatternSize`
are created only if they do not exist.

This allows calling `ViewProviderDraft(obj.ViewObject)`
to migrate an older object to this viewprovider
but without adding duplicated properties.

In particular, this is done to support the migration of the older
`Fillet` object.
2020-05-12 10:02:21 +02:00
vocx-fc
de9c9a6be2 Draft: move arc_3points to the make package
Also import it in the `Draft` namespace so that is available
as `Draft.make_arc_3points`.

Use this new function in the unit test `drafttests.test_creation`,
in the GuiCommand `draftguitools.gui_arcs`, and in the
`draft_test_objects` script.
2020-05-12 10:00:41 +02:00
vocx-fc
8043b4bb8b Draft: remove repeated _DraftObject class in Draft.py 2020-05-12 10:00:41 +02:00
Bernd Hahnebach
65fc2a74d6 Arch: unit test pep8, do not import multiple modules in one line 2020-05-11 21:38:37 +02:00
Bernd Hahnebach
4f8004c792 Arch: add unit test for Pipe 2020-05-11 21:38:33 +02:00
Bernd Hahnebach
e46d7c599c Arch: add unit test for Equipment 2020-05-11 21:38:33 +02:00
Bernd Hahnebach
42103271d9 Arch: Equipment, fix for ifc 2x3 2020-05-11 21:38:31 +02:00
Bernd Hahnebach
ea8bcb8e6e FEM: pep8 code formating 2020-05-11 18:02:49 +02:00
wmayer
0621cfa9d8 remove deprecated std::unary_function 2020-05-11 13:55:54 +02:00
wmayer
618089d6d8 remove deprecated std::binary_function 2020-05-11 13:46:37 +02:00
wmayer
4d8db6474b Doc: [skip ci] fix check for doxygen 2020-05-11 10:55:47 +02:00
Russell Johnson
a17c3e97c6 Path: Update selection gates pertaining to unified Profile operation 2020-05-10 23:07:53 -05:00
Russell Johnson
dcd6f0ee97 Path: Improve geometry selection and Cancel operation error messages 2020-05-10 23:07:53 -05:00
Russell Johnson
0e48eb1e85 Path: PEP8 and LGTM cleanup; Remove extra addProperty() statement
Removed 'EnableRotation' property addition because it is done in PathAreaOp module upon creation and document restore.
2020-05-10 23:07:53 -05:00
Russell Johnson
edbe6c4f2f Path: Additional fixes and improvements to unified Profile operation 2020-05-10 23:07:53 -05:00
Russell Johnson
00226b6654 Path: Implement backwards compatibility
Source modules are replaced with pass-through code to send pre-existing profile-based operations to new unified `Profile` operation.
Path: Set line endings to Unix style
2020-05-10 18:19:42 -05:00
Russell Johnson
2309343b29 Path: Integrate unified Profile operation into PathWB
Remove Contour, Profile Faces, and Profile Edges icons from PathWB GUI.  Files are still fully in tact and available.
2020-05-10 18:19:42 -05:00
Russell Johnson
5d91213292 Path: Consolidate Contour, ProfileFaces, and ProfileEdges
No geometry selection defaults to Contour operation.
Path: Add new unified `Profile` operation modules
2020-05-10 18:19:42 -05:00
Russell Johnson
de666296f9 Path: Update 'Operation' panel visibility when 'Base Geometry' changes 2020-05-10 18:19:42 -05:00
Russell Johnson
ece3d797aa Path: Add method, 'updatePanelVisibility()'
New method allows one panel to update visibility on another panel.
2020-05-10 18:19:42 -05:00
Russell Johnson
e1322b9cf1 Path: Add reference to parent class within child class 2020-05-10 18:19:42 -05:00