Commit Graph

21974 Commits

Author SHA1 Message Date
wmayer
bb8ca24904 CMake: make sure that C++14, C++17 or C++20 can also be set for MSVC 2020-07-14 10:28:00 +02:00
Bernd Hahnebach
7eda764168 FEM: unit tests, deactivate another failed py2 test 2020-07-14 09:44:08 +02:00
Bernd Hahnebach
8f46df30ab FEM: unit tests, fix 2020-07-14 08:37:16 +02:00
vocx-fc
f899430739 Arch: fix incorrect indentation in the OBJ exporter 2020-07-14 08:27:42 +02:00
Bernd Hahnebach
3b0ca458ef FEM: unit test, do not run a test if it not passes python 2 2020-07-14 07:36:11 +02:00
Bernd Hahnebach
39bc111056 FEM: in out, improve imports 2020-07-14 07:36:07 +02:00
Bernd Hahnebach
89d65326e3 FEM: unit tests, update test commands 2020-07-13 23:10:11 +02:00
Bernd Hahnebach
60e6bc062a FEM: constants, fix non ascii character 2020-07-13 22:56:23 +02:00
Bernd Hahnebach
2600fee0aa FEM: z88 unit tests, fix for installed FreeCAD 2020-07-13 22:31:07 +02:00
Bernd Hahnebach
e095cd6670 FEM: examples, prescribed displacement, add comment in the regard of z88 2020-07-13 21:51:40 +02:00
Sudhanshu Dubey
aab6d8420a FEM: examples, prevent creation of z88 solver
... since it's not supported by this example
2020-07-13 21:51:31 +02:00
Sudhanshu Dubey
2d40c82435 FEM: unit tests, add z88 writing test framework 2020-07-13 16:47:57 +02:00
Bernd Hahnebach
b900b2956b FEM: elmer unit tests, better names in the regard of unit schema 2020-07-13 16:25:04 +02:00
Bernd Hahnebach
fc10c05719 FEM: elmer unit tests, add SI units file writing test 2020-07-13 16:24:58 +02:00
Bernd Hahnebach
b15f517af5 FEM: elmer writer, move constants and unit code inside class as it can change after module import 2020-07-13 16:24:53 +02:00
Yorik van Havre
6a179a5519 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2020-07-13 14:50:36 +02:00
luz paz
e4f6689e0a Merged crowdin translations 2020-07-13 14:49:45 +02:00
hlg
a2498e1fdc [Arch] ignore extrusion direction vector length 2020-07-13 14:39:28 +02:00
Vanuan
9f640d8fad [Arch] [TD] Fix #4392: ArchView invisible objects should be show for Coin* render modes 2020-07-13 14:37:50 +02:00
Vanuan
a072f944d0 [Arch] [TD] Bug 4392: ArchSection and hidden objects for Render mode 2020-07-13 14:37:50 +02:00
vocx-fc
c97d13164e Arch: update some functions that come from the Draft workbench
In particular `getGroupContents` was renamed to `get_group_contents`
in the Draft workbench, so the function name is updated accordingly.
2020-07-13 14:35:38 +02:00
vocx-fc
d61fa25f43 Draft: clean up the main Draft.py module
Remove imported modules that are no longer necessary.

Reorganize the import of functions from the separate modules.
It's possible that some functions will be further moved another time.
2020-07-13 14:35:38 +02:00
vocx-fc
314637e945 Draft: move grouping functions to draftutils.groups module
These functions were previously in `draftutils.utils`,
and are related to grouping objects and finding objects
inside groups. These include `get_group_names`, `ungroup`,
`get_windows`, `get_group_contents`, `get_movable_children`.
These are imported in the main `Draft.py` module, so compatibility
is retained.

Modules which use these functions are updated; these include
Gui Commands like `Move`, `Rotate`, `Scale`, `AddToGroup`,
as well as objects like `DrawingView` and `Shape2DView`,
and `ViewProviderClone`.
The code inside the `importDXF` module is also updated.

The Arch Workbench uses many of these functions
but it does so from the `Draft` namespace, so these edits
don't change the situation for these commands.
2020-07-13 14:35:38 +02:00
vocx-fc
3a7751049b Draft: move the convertDraftTexts function to make_text
The old `convertDraftTexts` function was moved from the `Draft.py`
module to the `draftutils.utils` module; however, here it is
not possible to use because the `makeText` function
is not accessible. Therefore, the function is moved to
`draftmake.make_text`.
2020-07-13 14:35:38 +02:00
Yorik van Havre
da262c0b45 Updated master ts files 2020-07-13 13:20:21 +02:00
Yorik van Havre
57a2af07c7 Arch: process openings in IFC multicore importer 2020-07-13 13:10:17 +02:00
Bernd Hahnebach
856c1206bd FEM: constants, more exact values 2020-07-13 08:08:57 +02:00
Bernd Hahnebach
5426541179 FEM: calculix writer, better information in the regard of units 2020-07-13 08:08:45 +02:00
sliptonic
5faa738002 Merge pull request #3688 from etrombly/deleted
[PATH] fix Cannot access attribute 'Document' of deleted object when cancelling PathPocket operation
2020-07-12 16:27:35 -05:00
sliptonic
b60aac7253 Merge pull request #3687 from sliptonic/feature/zmap
[Path] unhide the property for the interpolation surface
2020-07-12 16:27:04 -05:00
Bernd Hahnebach
6da5e33196 FEM, z88 result import, fill displacement length 2020-07-12 21:27:51 +02:00
Bernd Hahnebach
52218e75cf FEM: z88 result reader, fill stats 2020-07-12 19:55:23 +02:00
Bernd Hahnebach
584d30844e FEM: restult tools stats calculation, fix missing check 2020-07-12 19:55:16 +02:00
Zheng, Lei
397e0b8a4f PartDesign: change SubShapeBinder make command
Allows making binder to another binder.
2020-07-12 19:43:23 +02:00
wmayer
d2ff5eaebe Part: fix regression of visibility automation in Attachment dialog
If a body is in a Part container and a new primitive is created no preview is shown because the Part container is automatically made invisiible.
The user has to manually make the container visible but this is an error-prone procedure because the Attachment dialog reacts on user-selection and thus
unintended things can happen. So, this is a serious regression of usability.

The regression is caused by commit cd73df745124 but the commit log doesn't explain why the change was even needed.
So, this commit leaves the previous changes but re-adds the old check to filter out container objects.
2020-07-12 16:03:42 +02:00
Zheng, Lei
4dad08eff6 PartGui: avoid code duplication for handing TaskAttacher
A better fix for #0004188

Delay calling setPreviewDisplayMode() in ViewProviderPrimitive::setEdit
also fixed issue of not turning off preview mode if the user cancels
editing because there is already a task dialog active.
2020-07-12 16:03:42 +02:00
Zheng, Lei
147b00f2cb Part: fix TaskAttacher::visibilityAutomation()
Rename Python variable 'tv' to avoid potential conflict with others
(PS. I can't reproduce error caused by this. But there is no harm doing
it either).

Handle editing attachment through an App::Link.
2020-07-12 16:03:42 +02:00
wandererfan
862b2cdf83 [TD]makeCosmeticLine Y inversion 2020-07-12 09:04:59 -04:00
luz paz
ac76f16aa3 Fix Crowdin typos and various other typos/grammar [skip ci]
Found via codespell v2.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-07-12 11:42:27 +02:00
Thomas Gimpel
0ba7dcd0f6 Gui: do not drop unhandled key events in *SpinBox::keyPressedEvent() handlers 2020-07-12 11:38:44 +02:00
Thomas Gimpel
85846b7e58 Gui: automatically activate the DlgExpressionInput dialog; fixes #4384 2020-07-11 20:02:06 +02:00
Cyril Waechter
b926149363 Fix comment in Quantity.cpp 2020-07-11 19:37:47 +02:00
wmayer
8cdb1a6cbc Py3: [skip ci] fix export of JSON file in Arch 2020-07-11 14:26:14 +02:00
Zheng, Lei
da4ee7e526 PartDesign: fix DressUp SupportTransform
Skip multiple consequtive DressUp features when SupportTransform is
enabled.
2020-07-11 13:03:44 +02:00
Zheng, Lei
a045f58a85 PartDesign: change feature DressUp behavior when used for pattern
Repurpose DressUp.SupportTransform property to define the following
behavior,

* When disabled (default), only the dressing will be used for patterning.

* When enabled, the additive/subtractive shape of the dressed base
  feature will be used for patterning. Any dressing that is not applied
  to the based feature will be ignored.

* If the dressing is applied to non-additive/subtractive feature, then
  only the dressing will be used for patterning.

New API FreatureAddSub::getAddSubShape() is added to account for the
fact that a dressing (e.g. a fillet) can be either additive or
subtractive, which means that a DressUP feature may contain both
additive and subtractive shapes.

FeatureTransformed is modified to perform both fusion and cut if
required.
2020-07-11 13:03:21 +02:00
Zheng, Lei
8b23d814f8 PartDesign: fix line ending in source code 2020-07-11 13:02:49 +02:00
Torsten Sadowski
b89b674a1d Fix for Bug #4372 2020-07-11 11:34:40 +02:00
Eric Trombly
547c6fa26e cleaner fix 2020-07-10 15:42:00 -05:00
Eric Trombly
6a1c68a647 fix deleted object error 2020-07-10 15:42:00 -05:00
Yorik van Havre
19db98ae54 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2020-07-10 14:44:42 +02:00