Uwe
9ef912a49d
[Part] Bullseye whitespace fixes
2022-02-16 03:40:07 +01:00
wmayer
0208608b9e
Base: fix Matrix4D::hasScale
...
* If all column vectors of the 3x3 sub-matrix are equal the function incorrectly claims that it's uniform scaling.
* Detect also non-uniform scaling and if was applied from the left or right side
* Replace the int with an enum and expose it to Python
* Add several new unit tests
2022-02-15 21:05:11 +01:00
marioalexis
b75fb1626a
Part: Part_SectionCut command active only if view is View3DInventor class
2022-02-15 10:19:15 +01:00
Uwe
701609f004
[Part] remove unused precompiled headers
2022-02-15 05:57:27 +01:00
Uwe
3d25e8fc10
[Part] try to fix compilation error without precompiled headers
2022-02-15 05:46:40 +01:00
Uwe
285218ecbe
[Part] more simplification of SectionCut code
2022-02-15 05:06:14 +01:00
Uwe
e6f91e9f5d
[Part] fix signal blocking in SectionCut code
...
- add missing signal blockSignals
- assure the desired UI objects get blocked
2022-02-15 04:47:47 +01:00
Uwe
e0fdd4394f
[Part] improve SectionCut code
...
- get rid of potentially unsafe static_casts
- fix logic mistake
2022-02-15 04:30:08 +01:00
Uwe
1197ef7fc9
[Part] simplify a but the SectionCut code
2022-02-15 02:49:05 +01:00
Uwe
1767d26242
[Part] add icon for sectionCut feature
2022-02-15 01:49:34 +01:00
wmayer
a769aee8b3
Part: define Part_SectionCut as permanent menu item
2022-02-14 16:48:09 +01:00
Uwe
942618ce72
[Part] improve SectionCutting code
...
all changes as suggested in 05a9c88ab2
2022-02-14 14:09:53 +01:00
Yorik van Havre
e1028eb65e
Merged crowdin translations
2022-02-14 12:31:57 +01:00
Uwe
ce2a8d00ec
[PD, Part] bring section cutting feature back to the View menu
...
As discussed here:
https://github.com/FreeCAD/FreeCAD/pull/6213#issuecomment-1033696604
the feature makes not much sense when only available from within the Part menu.
For now, bring it at least back to the View menu for Part and PD
2022-02-14 01:34:55 +01:00
wmayer
b0d8ed1bf2
Part: section cut window is not bound to 3d viewer widget
2022-02-13 19:33:19 +01:00
wmayer
29b940fb66
Part: Circle variable name change to create consistency
...
Change variable names of the Circle from Angle0 to Angle1 to create consistency with all other named angle variables
2022-02-11 18:28:58 +01:00
wmayer
27c2dc216b
Part: handle to load old project files with Part::Ellipse
2022-02-11 17:25:28 +01:00
Sebastian
a48656e5fe
Ellipse variable name change to create consistency
...
Change variable names of the Ellipse from Angle0 to Angle1 to create consistency with all other named angle variables
2022-02-11 17:22:45 +01:00
Sebastian
04f71e02be
Update PrimitiveFeature.cpp
...
Correct upper case words equal to other tool tip hints.
2022-02-08 21:54:20 +01:00
0penBrain
73f2c1434a
Modernize signal/slot connection for real :)
2022-02-08 17:51:36 +01:00
marioalexis
50478a19d1
Part: Move Part_SectionCut command to Part menu item list
2022-02-08 12:09:09 +01:00
wmayer
846b680d07
Part: [skip ci] add Part unit tests to test Geom2dCircle::getCircleCenter
2022-02-05 16:26:12 +01:00
wmayer
92dc997608
Part: fix possible creation of NaN in Geom2dCircle::getCircleCenter
2022-02-05 16:16:59 +01:00
wmayer
2bec14b93a
Part: expose Geom2dCircle::getCircleCenter to Python and fix a regression
2022-02-05 16:07:00 +01:00
Uwe
eecc2eacae
[Part] SectionCutting: remove another unused variable
...
strangely MSVC did not report me these, the CI does
2022-02-05 14:45:34 +01:00
Uwe
a7b1557bcb
[Part] SectionCutting: remove unused variable
2022-02-05 14:09:13 +01:00
Uwe
d414a177d2
[Part] Extrusion: reduce angle step size
...
tapered extrudes are mainly used for molds etc, so only a few degrees. The angle step in the properties was already 1° and also Pad/Pocket uses 1° steps
2022-02-05 05:39:40 +01:00
Uwe
cc53e381c6
[Part] feature to make persistent section cut views ( #4118 )
...
* [Part] feature to make persistent section cut views
* one aim is to have a feature to make real cuts, not hollow ones like with clipping
* the second one is to have a persistent view, so an object in the tree that can be further exported, meshed etc.
For a detailed description with examples see https://forum.freecadweb.org/viewtopic.php?f=17&t=52441
2022-02-05 01:57:57 +01:00
edi271
7477a9950e
Update Geometry2d.cpp
...
I tested. It works using Precision::Confusion(). Thank you.
2022-02-02 08:35:34 -05:00
edi271
6b9e23d7dd
add accuracy to getCircleCenter method
2022-02-02 08:35:34 -05:00
Uwe
12b0e0dd92
[PD] add option to create tapered Pad / Pocket
...
This PR adds the same functionality as provided by Part Extrude.
The used code parts are sorted out to a new helper function that is used by Part and PartDesign.
2022-02-02 01:04:06 +01:00
Yorik van Havre
d7c5800da2
Merged crowdin translations
2022-02-01 12:59:42 +01:00
Uwe
6395bd3b8d
[Part] whitespace only in CMake file
2022-02-01 02:59:53 +01:00
Uwe
2ee5ba3f83
[Part] sort includes
...
to keep the overview and to reduce diff of a pending PR
also uniform the include path specification
2022-02-01 02:51:41 +01:00
Uwe
67bea18b15
[Part] fix a comment
2022-02-01 02:34:51 +01:00
Uwe
fd542ecfce
[Part] Extrusion: stop if intermediate shape is Null
...
besides the error message, we need to raise an error
- also fine-tune the wording
2022-01-31 01:07:33 +01:00
Uwe
341a92f08d
[Part] Extrusion: fix logic issue
...
has actually no influence on the output but is important to understand the logic of the code
2022-01-31 00:23:33 +01:00
Uwe
89e623e1b7
[Part] Extrusion: fix CI compiler warning
...
fixes "warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int'"
2022-01-30 22:46:07 +01:00
Uwe
729cd4a7c0
[Part] Extrusion: code simplification and documentation
...
- in order for the pending PR to add tapered padding/pocketing
2022-01-30 19:37:41 +01:00
Uwe
2cad24e303
[Part] Extrusion: handle also complex nested structures
...
- there can be strange cases with structures all intersecting each other. Their extrusion has no practical use case but we must avoid that such structures results either in an infinite loop or in an invalid geometric result.
2022-01-30 18:43:11 +01:00
Uwe
65bf134d43
[Part] Extrude: fix a thinko introduced by previous commit
...
- the handling of all inner wires must be done within the recursion
2022-01-30 17:41:40 +01:00
Uwe
aa48c2ea44
[Part] Extrusion: simplify code by using full recursion
...
- the recursion can be done completely by one void
- also add a brief description of this void
2022-01-30 16:53:44 +01:00
Uwe
a3944b8553
[Part] Extrusion: code optimizations
...
kudos to @marioalexis84
2022-01-30 06:02:37 +01:00
Uwe
b339cd4624
[Part] Extrusion: taper nested wires properly
...
addendum to commit 2d6bcba90
Now also wires nested by more than one level are supported.
The possible nesting is infinite.
2022-01-30 05:52:43 +01:00
mwganson
d6350d4f33
Part.show() python return the new document object instead of None
2022-01-29 23:50:43 +01:00
Uwe
23c1fb78bf
[Part] Extrude: remove unused variable
2022-01-29 23:18:11 +01:00
Uwe
f061a2cd82
[Part] handle inner wires for Extrude ( #5367 )
...
* [Part] handle inner wires for Extrude
this is a PR to make Extrude handle inner wires of sketches.
2022-01-29 21:50:55 +01:00
Yorik van Havre
233182dcd6
Merged crowdin translations
2022-01-26 14:15:14 +01:00
luz paz
501a5e88c0
Part: fix source comment typo
2022-01-22 16:28:41 +01:00
Uwe
4038c6487b
[Part] add missing include
...
needed since PR #5382
- also transfer another include
2022-01-21 01:07:38 +01:00