Commit Graph

20166 Commits

Author SHA1 Message Date
Chris Hennes
9afc4503ab [Sketcher] Refactor split code
LGTM complains about using continue statements inside a loop
whose condition is always false. In addition, the C++ core guidelines
recommend against using the do...while construct, and in this case it
was really serving as a goto, just hiding the actual goto keyword.
This commit replaces the loop and continue structure with simple
conditionals.
2021-09-17 23:43:12 +02:00
Preslav
fb0e670d8a Added spring boundary condition 2021-09-17 11:08:08 +02:00
Ajinkya Dahale
0327a09879 [FEM] Add backward compatibility for simple hardening
Prior to a recent commit (or this, if squashed), yield points of a non-linear
material with simple hardening were stored as three different properties. These
changes consolidate them into the new `YieldPoints` property.
2021-09-17 11:07:16 +02:00
Ajinkya Dahale
16a82d1eb7 [FEM] Add tools for more yield points in simple hardening materials
String List instead of String should allow for arbitrarily many entries,
theoretically.

Note the defaults previously in `YieldPoint1` an `YieldPoint2` were arbitrary.
Now the list is kept empty by default.

Fixes issue #4720.
2021-09-17 11:07:16 +02:00
Roy-043
fa2851a7e8 TechDraw housekeeping: TechDraw_LandmarkDimension icon fix (#5033)
TechDraw housekeeping: TechDraw_LandmarkDimension icon fix
2021-09-16 18:42:11 -05:00
Ajinkya Dahale
28d8d808a8 PartDesign: Add new need active body dialog with option to choose body (#4949)
* [PD] Add new need active body dialog

Intended for use wherever an active body is needed but none exists. The dialog
contains a list with the bodies present in the document, with an extra option to
make a new body. Custom text can be provided if needed.

This commit also replaces the warnings used by "new sketch" and "primitive"
command with this new dialog.

Addresses issue #4288.
2021-09-16 12:27:46 -05:00
wmayer
5694f08f15 Mesh: add function section() to Mesh class 2021-09-16 17:31:45 +02:00
wmayer
614e247dff Part: support null shapes in boolean operations 2021-09-16 12:43:32 +02:00
Chris Hennes
cbb682c080 Merge pull request #5031 from luzpaz/PD-typo
PartDesign: Fix typo in function getContiniusEdges->getContinuousEdges
2021-09-15 11:09:33 -05:00
wmayer
703b824526 MeshPart: show a more useful error message if the currently selected object cannot be tessellated 2021-09-15 17:09:54 +02:00
Roy-043
85a84a7176 TechDraw: Changed "TechDraw_Dimension_Link" -> "TechDraw_LinkDimension" (#5032)
* Update and rename TechDraw_Dimension_Link.svg to TechDraw_LinkDimension.svg

Icon name should match the command name.
2021-09-15 10:08:09 -05:00
luz paz
909030859d PD: Fix typo in function getContiniusEdges->getContinuousEdges
Related to PR #5029
2021-09-15 10:11:37 -04:00
wmayer
fff27ee78b PD: fix ProfileBased::Restore to not affect sub-classes that need to handle changed property types/names 2021-09-15 15:45:24 +02:00
wmayer
2af9c5038e PD: move handling of changed properties of Transformed to handleChangedPropertyType 2021-09-15 15:20:40 +02:00
wmayer
ba2ad05983 PD: move handling of changed properties of the Chamfer/Fillet to handleChangedPropertyType 2021-09-15 15:14:14 +02:00
wmayer
44eeae7286 Part: move handling of changed properties of the Primitive class to handleChangedPropertyName and handleChangedPropertyType 2021-09-15 14:45:50 +02:00
wmayer
fa86b0216e Mod: make sure to call the base class' handleChangedPropertyType 2021-09-15 14:07:32 +02:00
wmayer
2295c4b9a3 Mesh: define the typenames FacetIndex and PointIndex to distinguish between facet and point related indexes 2021-09-14 23:01:29 +02:00
wmayer
9ce79bf3c7 Mod: fix warning [-Wmacro-redefined] 2021-09-14 22:57:17 +02:00
wmayer
a40d37a980 Base: split export/import macros from FCConfig.h and move them to FCGlobal.h
The FCGlobal.h can be included in a Global.h header file of an extension module.

The reason is that some IDEs (e.g. QtCreator) fails to detect the export/import macros when only defined in the PreCompiled.h files and thus raise a parser warning.
2021-09-14 16:40:30 +02:00
Megidd Git
74623847b7 Mesh: fix infinite loop when repairing mesh facet indices 2021-09-12 09:13:57 +04:30
Yorik van Havre
f5c65cb361 Merge pull request #4935 from edi271/TechDrawToolsEdi
[TD] added TechDrawTools Commands
2021-09-09 11:39:02 +02:00
Yorik van Havre
bbf2162111 Merge pull request #5018 from luzpaz/sketcher-cstring-fix
Sketcher: fix mislabeled .ui cstring tag
2021-09-09 11:37:39 +02:00
luz paz
1f97dbc285 Draft: whitespace tweak 2021-09-08 10:22:26 -04:00
luz paz
60568ec32f Draft: fix comment typo 2021-09-08 10:22:26 -04:00
luz paz
b736c7decc Path: Fix PathScripts/PathJobGui.py typo bug 2021-09-08 10:22:26 -04:00
luz paz
c4d6bc1d9e Sketcher: fix mislabeled .ui cstring tag
Closes https://github.com/FreeCAD/FreeCAD-translations/issues/59  
Thanks @jakub-swierk for the patch!
2021-09-08 10:21:43 -04:00
Yorik van Havre
e47ee43a22 Merge pull request #5002 from AjinkyaDahale/fix-4732-self-int
[Mesh] Avoid false negatives during self-intersection checks
2021-09-08 12:31:30 +02:00
mwganson
af38242e7a [TechDraw] prevent crash where user has duplicated page without dependencies and then tries to remove a view from one of the pages by editing the Views property 2021-09-07 12:55:20 -05:00
Yorik van Havre
98d537b3cf Merge pull request #5013 from mwganson/techdraw
[TechDraw] prevent crash where user duplicates page without also dupl…
2021-09-07 12:47:53 +02:00
Yorik van Havre
36092cb588 Merge pull request #5014 from marioalexis84/draft-gui_label
Draft: Prevent working plane from restoring after label command
2021-09-07 12:45:22 +02:00
Yorik van Havre
34d28ac985 Merge pull request #5015 from Roy-043/Spreadsheet-importXLSX
Spreadsheet importXLSX: Added floor and ceil functions.
2021-09-07 12:45:03 +02:00
Yorik van Havre
a9717a1e17 Merged crowdin translations 2021-09-07 11:26:48 +02:00
Roy-043
5221175455 Spreadsheet importXLSX: Added floor and ceil functions. Fixed aliasRef is None issue.
See https://forum.freecadweb.org/viewtopic.php?f=3&t=61807&p=530473#p530413
2021-09-07 09:26:39 +02:00
marioalexis
42775e6f3d Draft: Prevent working plane from restoring after label command 2021-09-07 02:50:38 -03:00
mwganson
cf961d6cca [TechDraw] prevent crash where user duplicates page without also duplicating dependencies 2021-09-06 13:20:29 -05:00
edi271
e660403b17 renamed to CommandExtensionPack 2021-09-06 18:32:45 +02:00
edi271
2014119bf0 added TechDrawTools Commands 2021-09-06 18:32:45 +02:00
edi271
1065dba485 delete redundant line in CommandCreateDims 2021-09-06 18:32:45 +02:00
edi271
186b542050 added TechDrawTools Commands 2021-09-06 18:32:45 +02:00
Yorik van Havre
73d5e2c7e1 Updated ts files 2021-09-06 15:32:07 +02:00
Yorik van Havre
2bf67f0191 Draft: Introduced Hatch command + object 2021-09-06 15:27:52 +02:00
Yorik van Havre
0fa90a320c Merge branch 'master' into Draft_addgroup 2021-09-06 12:02:36 +02:00
Yorik van Havre
d0a3a34665 Restored docstring 2021-09-06 11:55:42 +02:00
Yorik van Havre
1d043b8cd3 Changed M shortcut to M,G 2021-09-06 11:53:28 +02:00
marioalexis
da2195a04a Draft: Fix variable referenced before assignment 2021-09-06 01:14:14 -03:00
Bernd Hahnebach
cc306096b7 FEM: writer base, fix regression introduce in calculix writer with 38ed53afca174 2021-09-03 08:31:08 +02:00
Yorik van Havre
db3b29b088 Merge branch 'alafr-arch-structure' of https://github.com/alafr/FreeCAD 2021-09-02 14:36:43 +02:00
Yorik van Havre
352fa25167 Arch: Added option to references to fuse the base objects by material 2021-09-02 12:21:29 +02:00
Yorik van Havre
5f621f9d11 Merge pull request #4732 from donovaly/PD-attachment-fix
[PD] fix bug that reference selection is always on
2021-09-02 11:59:43 +02:00