Commit Graph

23918 Commits

Author SHA1 Message Date
David Osterberg
1d2c51d66f Draft: Fix regressions in Draft array 2021-02-14 01:20:06 +01:00
mlampert
ea957114ac Merge branch 'master' into bugfix/path-ellipsis-cmdsForEdge 2021-02-13 16:17:43 -08:00
mlampert
d862434870 Merge branch 'master' into bugfix/deburr-offset-part 2021-02-13 16:17:14 -08:00
mlampert
d7c4612bb6 Merge branch 'master' into bugfix/path-invalid-base-geometry-robustness 2021-02-13 16:16:44 -08:00
Markus Lampert
da85fde409 Split OCL and experimental features to allow enabling independently. 2021-02-13 16:03:00 -08:00
Markus Lampert
63cd587e07 Added 'Advanced' preferences page, moved warning suppression there and experimental feature support. 2021-02-13 16:03:00 -08:00
wmayer
1b42828d25 Mesh: [skip ci] implement splitFacet 2021-02-14 00:54:30 +01:00
mlampert
255b184540 Merge branch 'master' into bugfix/path-invalid-base-geometry-robustness 2021-02-13 11:31:32 -08:00
mlampert
574918e5f2 Merge branch 'master' into bugfix/path-ellipsis-cmdsForEdge 2021-02-13 11:30:29 -08:00
mlampert
293f1613c5 Merge branch 'master' into bugfix/deburr-offset-part 2021-02-13 11:29:19 -08:00
paul lee
f05cc354b1 [ArchSectionPlane] Fix Swing Symbol for Windows(Doors) Link in ArchView/TechDraw
Forum Discussion  :  [ Link in Arch/BIM -- 4 ] Link of Door : Swing Not Shown in ArchView/TechDraw
- https://forum.freecadweb.org/viewtopic.php?f=23&t=55526
2021-02-14 03:13:36 +08:00
luz paz
518a9fcbaf Gui: Stylesheet fix applied to all shipped stylesheets [skip ci]
Fixes #0004559
2021-02-13 12:19:27 -05:00
Abdullah Tahiri
95fcaccfd8 Sketcher: Fix external geometry ellipse projection in parallel plane
====================================================================

When the ellipse to be projected and the sketch plane are parallel, the original code
by shermelin provided for a translation of the original ellipse, which would be the best solution
if it weren't because the Sketcher, internally, works under the assumption of a normal vector to the
sketcher plane being (0,0,1). If the original ellipse is parallel to the sketch plane, but the sketch
plane is not the XY plane, the copy and translation would result in a ellipse not in the XY plane of the
Sketcher. Then the sketcher internals will not properly consider its dimensions.

The solution applied here is to default to the general method for non-parallel planes.

It solves:
https://forum.freecadweb.org/viewtopic.php?f=3&t=55284#p477522
2021-02-13 15:18:34 +01:00
wmayer
2b881cccad Draft: fix syntax errors 2021-02-13 12:14:12 +01:00
Abdullah Tahiri
5086c5f38d Sketcher: Coverity fix in Sketch::analyseBlockedGeometry
========================================================

Users chennes and hyarion made me aware of this covereity issue:

Fixes Coverity: geoit can be end() when dereferenced
https://github.com/FreeCAD/FreeCAD/pull/4429/files#

When analysing the block where the dereferrencing appears, it
appears that it is a left-over that no longer makes sense:
- The algorithm classifies block constraints into those that are
not affected by any other driving constraint and those that are
affected by other driving constraints.
- The offending block deals with internal aligned geometry, thus
per definition has a driving internal alignment constraint, for which
the previous block already set the need of post-analysis.
- No matter what, the geometries, the complex one and the internal one
will have at least the driving internal alignment constraint, so they
cannot become "not affected by any other driving constraint".
- If the geometry had a block constraint on it, it was already added for
post-analysis in the previous block. If it did not have one block constraint,
the fact that it is internal aligned geometry is an irrelevant consideration.

Probably there was a point during development when this made sense, but with
the current post-analysis, it does not appear to make sense anymore. So the
block was removed.

This commit adds a unit test for blocked geometry (new block constraint).
2021-02-13 11:44:06 +01:00
mlampert
eef4629c6b Merge branch 'master' into bugfix/path-invalid-base-geometry-robustness 2021-02-12 19:00:02 -08:00
mlampert
dba3f4055a Merge branch 'master' into bugfix/path-ellipsis-cmdsForEdge 2021-02-12 18:59:37 -08:00
mlampert
7840130186 Merge branch 'master' into bugfix/deburr-offset-part 2021-02-12 18:58:30 -08:00
Chris Hennes
feb4ffc693 Correct minimum distance calculation in SplitFacet
Found via LGTM.
2021-02-12 21:59:50 +01:00
mlampert
d3b83764b7 Merge branch 'master' into bugfix/deburr-offset-part 2021-02-12 09:39:14 -08:00
mlampert
59de4bd378 Merge branch 'master' into bugfix/path-ellipsis-cmdsForEdge 2021-02-12 09:38:47 -08:00
mlampert
5a1200b246 Merge branch 'master' into bugfix/path-invalid-base-geometry-robustness 2021-02-12 09:38:27 -08:00
David Osterberg
f0d3e19a4e PartDesign: Fix hardcoded through all distance in ProfileBased
Before the throughall distance was 10 m, which is not enough for
many applications. The fix is to use the bounding box of the base shape
together with the sketch profile to calculate dynamically a large enough
length.
2021-02-12 18:37:56 +01:00
David Carter
158acd110e Add rocket workbench addon 2021-02-12 18:12:49 +01:00
0penBrain
2a3edfd83e [SpreadSheet] Fixes #4563 exported range issue 2021-02-12 18:06:07 +01:00
David Osterberg
17af884e50 PartDesign: Fix broken outdated icon filenames
This fixes some cases that were missed in commit 2834075d6a
2021-02-12 17:46:27 +01:00
wmayer
66417b3ce1 TD: [skip ci] use setAutoCloseOnTransactionChange for balloon and dimension task dialog 2021-02-12 17:43:31 +01:00
wmayer
75dff5d947 Gui: [skip ci] add option to automatically close task dialog if undo/redo was pressed 2021-02-12 17:42:49 +01:00
wmayer
d4e8a5a384 TechDraw: [skip ci] avoid to trigger a slot in constructor of TaskBalloon 2021-02-12 16:55:39 +01:00
wmayer
3288c02eba TechDraw: fixes for dimension feature:
* reimplement ViewProviderDimension::setupContextMenu() to show menu item to start editing it
* fix TaskDimension::accept() and TaskDimension::reject()
2021-02-12 15:55:26 +01:00
wmayer
bb0d75b6cc TechDraw: [skip] fixes for balloon feature:
* reimplement ViewProviderBalloon::setupContextMenu() to show item to start editing it
+ fix TaskBalloon::accept() and TaskBalloon::reject()
2021-02-12 15:36:21 +01:00
Yorik van Havre
84b8282f48 Updated ts files 2021-02-12 14:47:37 +01:00
Yorik van Havre
97bfc5541e Tools: Detect and use pyside2-lupdate in ts tools 2021-02-12 14:45:41 +01:00
Yorik van Havre
43feb585ad Draft: Fixed broken translations everywhere 2021-02-12 14:44:58 +01:00
wmayer
eaae425c64 PD: [skip ci] fix ViewProviderPrimitive::getIcon() after renaming of icon files 2021-02-12 13:20:16 +01:00
wmayer
d7ad20acdd Part: [skip ci] code-refactoring in DlgPrimitives class 2021-02-12 12:41:45 +01:00
Markus Lampert
e5527025cc Added support for Part.OffsetCurve to flipEdge. 2021-02-11 22:58:37 -08:00
Markus Lampert
95ccfd4505 Fixed segmentation for unknown shapes, leaving that to the experts. 2021-02-11 21:29:52 -08:00
Markus Lampert
ec2328bfaa Ensure base geometry is valid so if it isn't one can still edit the op and fix the base geometry. 2021-02-11 20:36:21 -08:00
paul lee
0e81e76f7d [Draft.draftutils.groups] get_windows() to support Links
FC Forum Discussion - https://forum.freecadweb.org/viewtopic.php?f=23&t=55438
2021-02-12 09:59:28 +08:00
Roy-043
5683d054d4 [Arch] Fix for ArchPipe: getProfile returned Shape instead of Wire
Fix for ArchPipe: getProfile returned Shape instead of Wire
2021-02-11 21:13:36 +01:00
David Osterberg
57fd294391 FEM: Improve Gmsh log, when Gmsh is not installed 2021-02-11 21:03:43 +01:00
J-Dunn
d55a72ee6a [PATH] fix conecutter core dumps
fix improperly passed arguments, trigger assert() in OCL, which causes an ugly core dump.
2021-02-11 19:33:51 +00:00
Alex Young
32200b604d LGTM: Removes unused import in PathPropertyBagGui.py 2021-02-11 13:12:49 +01:00
Alex Young
ca2ecf4248 Path: Removes unused imports from PathToolBit.py
lgtm.com showed unused imports in PathToolBit.py.  This patch removes them.  The tests in TestPathApp still pass.
2021-02-11 13:10:52 +01:00
Chris Hennes
a0bbb173f4 LGTM: Remove unused Time() function
The ConsoleSingleton::Time() function is flagged by LGTM for using
two different unsafe time-related functions. It is not called anywhere
in the current codebase, and is not exposed in the Python API, so was
removed rather than being repaired.
2021-02-11 12:51:31 +01:00
donovaly
2834075d6a [PD] rename icons to match Wiki files
For the What#s this feature we need to have a uniform naming of the features and its icons. For some PD icons this is not the case and since we are in feature freeze, this is the right time to address this.
(I see the same is already done for Mesh.)
2021-02-11 12:47:25 +01:00
Chris Hennes
946e980d1a LGTM: Move seq->next out of loop control
LGTM points out that the construct use in the loop here "does
nothing" -- that is, it is a conditional whose result is never used.
It is apparently being used simply to ensure that the next() function is
called on each loop iteration, but because sequence may be null, it is
shoehorned into a trinary :? operator. To clarify the intent and ensure
that later readers (including LGTM) do not misunderstand it,
this code is broken out into a more standard conditional construct at
the end of each loop iteration.
2021-02-11 12:31:25 +01:00
bitacovir
cbc3fbd157 [UI] Replacement of 3 SVG icons for OpenSCAD commands 2021-02-11 12:07:09 +01:00
bitacovir
4130244329 Fix MeshPart icon names 2021-02-11 11:57:56 +01:00