Commit Graph

16328 Commits

Author SHA1 Message Date
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
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
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
Russell Johnson
39636cac21 Path: Initiate unification of ProfileFaces and ProfileEdges operations
ProfileFaces now accepts and processes faces and edges.
Full functionality is maintained (so far as tested) with respect to original operations.
2020-05-10 18:19:42 -05:00
wandererfan
85f0eddddc [TD]minor py fixes 2020-05-10 18:06:40 -04:00
wandererfan
37340eef0f [TD]Dimension Py Routine fixes 2020-05-10 18:06:40 -04:00
Bernd Hahnebach
f54eba784b FEM: calculix writer, fix regression added with 45dac67211 2020-05-10 21:02:59 +02:00
Armandas Jarušauskas
cc82cf3e50 Added chamfer angle support to PartDesign. 2020-05-10 18:59:30 +02:00
wandererfan
29c5528fde [TD]oblique section lines 2020-05-10 11:03:15 -04:00
wandererfan
b3290e0352 [TD]show section face pat hatch on restore 2020-05-10 11:03:15 -04:00
wandererfan
24139bf25d [TD]load images at correct size 2020-05-10 11:03:15 -04:00
WandererFan
92dfdf605b [TD]prevent extra recompute on X,Y change 2020-05-10 11:03:15 -04:00
sliptonic
ad815b491f Merge pull request #3450 from dubstar-04/fixes/cycletime
[Path] - fixes/cycletime
2020-05-09 22:39:25 -05:00
shermelin
9b8b128a0d [Sketcher] Project full circle, impl. missing cases
Implements cases for full (closed) circle, when not parallel to the
sketch plane.
2020-05-09 17:20:34 +02:00
Daniel Wood
45d9c23c27 Translate user messages 2020-05-09 10:39:48 +01:00
Daniel Wood
c9dc4963d9 Use PathLog for user notices 2020-05-09 10:35:55 +01:00