Commit Graph

37100 Commits

Author SHA1 Message Date
wmayer
d6a0732032 Base: add unit tests 2023-08-27 18:55:02 +02:00
Paddle
11fd7f3a32 Implement GeomSelectionSizes to further refactor Dimension::makeAppropriateConstraint 2023-08-27 18:48:33 +02:00
Paddle
4d3b27f9a8 Dimension: Fix 2 circles concentric and length mode. 2023-08-27 18:48:00 +02:00
Chris Hennes
d8094b0d57 Merge pull request #10365 from chennes/wrapPyArgParseWithKeywords
Wrap PyArg_ParseTupleWithKeywords
2023-08-27 10:23:31 -05:00
kaktus Jacek
06284ede05 Cleaning code from unnecessary strings generated to Crowdin. (#10385)
Cleaning Crowdin of "garbage". Second approach.
https://github.com/FreeCAD/FreeCAD-translations/issues/270
2023-08-27 10:08:11 -05:00
Kacper Donat
1c70983c60 PD: Keep Length and Offset in sync for LinearPattern
As Length and Offset represents the same concept in different way it is
useful to keep them in sync when it is possible. Update to one of them
will update the other with approperiate value. This behaviour behaviour
works only if both properties are not coming from expression engine -
those will stay not touched.
2023-08-27 12:45:53 +02:00
Kacper Donat
6d7fea506c PD: Add offset / overall angle modes for PolarPatterns
This commit adds two separate modes for defining angular spacing between
elements in the PD's Polar Pattern:

1. Overall Angle - which behaves exactly like it behaved before,
2. Offset Angle - which allows user to specify separation angle between
   consecutive elements.

This change is analogue to that introduced for LinearPattern in previous
commits.
2023-08-27 12:45:53 +02:00
al
2b1108439f PD: Add offset / overall length modes for LinearPattern
This commit adds support for two separate modes of defining distance
between elements in PD's Linear Pattern.

1. Overall Length - which works exactly like it works before,
2. Spacing - which allows user to explicitly define distance (offset) between
   features.
2023-08-27 12:45:53 +02:00
Roy-043
2c317cd40a Draft: Make gui_tool_utils.get_support nesting aware (#10373)
The get_support function did not work for objects nested in, for example, Std_Parts.

Additionally improved and cleaned up the code, and reduced the docstrings.
2023-08-27 12:41:25 +02:00
Roy-043
e9294f2dbb Draft: remove superfluous code from gui_points.py (#10379) 2023-08-27 12:41:01 +02:00
Roy-043
c9975f39f8 Draft: Add wp attribute to DraftTool class (#10386)
It makes sense to have this attribute. It will also facilitate the coming work related to the Plane class.

Additionally: Removed the `not self.doc` check from `Activated` as `IsActive` already handles this.
2023-08-27 12:40:30 +02:00
Paddle
212c0a75af Fix crash when user click 'Close' button while Dimension is active.
TaskDlgEditSketch didn't purge the handler first as is doing CmdSketcherLeaveSketch.
2023-08-27 09:26:44 +02:00
Paddle
178257c544 Refactor makeAppropriateConstraint 2023-08-27 08:25:20 +02:00
Paddle
4c161a544d Replace multiple occurence of selVec.size() by s_vec to clean the makeAppropriateConstraint function 2023-08-27 07:26:53 +02:00
Chris Hennes
af23624e08 Add libyaml-cpp-dev to Ubuntu 22.04 LTS CI 2023-08-27 00:22:40 -05:00
Chris Hennes
a8a4594d47 Add libyaml-cpp-dev to Ubuntu 20.04 LTS CI 2023-08-27 00:22:40 -05:00
mosfet80
abf767b0c8 Update ccache into action.yml 2023-08-27 00:22:30 -05:00
mosfet80
fa1daaa6c2 Update labeler.yml
Switch to Node.js 16 by default.
version 3 is no longer maintained
2023-08-27 00:22:20 -05:00
wmayer
90bafb3a06 Base: add methods to get volume and get max/min points 2023-08-27 03:11:00 +02:00
Chris Hennes
29e53918ae Base: Add clearer error message for missing nullptr 2023-08-26 16:11:03 -05:00
Paddle
00cb724341 Small simplification by removing useless tests in makeAppropriateConstraint 2023-08-26 22:13:11 +02:00
wmayer
bb13c179e9 Base: fix clang-tidy warnings in BoundBox.h 2023-08-26 21:03:58 +02:00
Paddle
79bb68ef14 Sketcher settings Dimension Add enums instead of magic numbers 2023-08-26 19:55:17 +02:00
Paddle
0908f07521 refactor Sketcher Dimension releaseButton 2023-08-26 19:47:23 +02:00
Chris Hennes
bf684e9583 Base: Add static_assert for keyword array size > 0 2023-08-26 12:32:29 -05:00
Paddle
421f35fe95 Remove superfluous virtual add missing override. 2023-08-26 19:13:52 +02:00
wmayer
d623e37e5e Test: add more unit tests 2023-08-26 13:17:53 +02:00
Paddle
2b2ba0b08a Change the name to 'Dimension' instead of 'Constrain Contextual' 2023-08-26 08:35:27 +02:00
Paddle
77bab58039 Fix texts in the new settings. 2023-08-26 07:41:11 +02:00
Paddle
8a858ae7ec Sketcher: Constrain Contextual implementation. 2023-08-26 07:41:09 +02:00
Chris Hennes
c60944ed62 TD: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
079617a58e Robot: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
e80f05cea0 RE: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
68adfdf98c Path: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
0e8be10b90 Part: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
8fe9d7e879 MeshPart: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
363ad73908 Mesh: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
08cf226263 Import: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
8bf24a7c3f Drawing: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
86a44c9824 Gui: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:26 -05:00
Chris Hennes
56d820892c App: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 15:34:20 -05:00
Chris Hennes
3b79fd58b7 Base: Wrap PyArg_ParseTupleAndKeywords 2023-08-25 14:52:30 -05:00
Chris Hennes
ada736696e Base: Add wrapper for PyArg_ParseTupleAndKeywords
Enable strict const-correctness for the keywords argument and address
several linter complaints related to using a C function in C++ code.
2023-08-25 14:49:28 -05:00
wmayer
423cc42ac8 Tests: add unit tests for:
* TopoShape::getElementTypeAndIndex
* ComplexGeoData::getTypeAndIndex

and fix crashes there when passing a null pointer
2023-08-25 19:23:18 +02:00
wmayer
f6d1fe1ab3 Part: refactor ViewProviderPartExt::getDetail 2023-08-25 19:23:18 +02:00
wmayer
fa12b433df App: refactor ComplexGeoData::getSubElementByName 2023-08-25 19:23:18 +02:00
andrea
58b5cb16ae removed unused files 2023-08-25 16:06:42 +02:00
Roy-043
602841c5f0 Draft: Remove unused arguments from gui_tool_utils.get_point (#10347) 2023-08-25 03:49:06 +02:00
Roy-043
971e74b7db Draft: Housekeeping and minor improvements for some draftguitools (#10339) 2023-08-25 03:47:39 +02:00
wmayer
010dca8303 Base: C++ core guidelines: init variables 2023-08-24 18:48:52 +02:00