Commit Graph

35606 Commits

Author SHA1 Message Date
bgbsww
ab3bb9fb71 Improve tests 2024-01-19 10:49:47 -05:00
bgbsww
874d421fa8 Split test cases 2024-01-18 13:15:21 -05:00
bgbsww
60ae251b61 Initial code of mapSubElement Test 2024-01-17 09:13:39 -05:00
Roy-043
930059b69f Merge pull request #12019 from Roy-043/Draft-Task-panel-checkboxes-were-repositioned-by-accident
Draft: Task panel checkboxes were repositioned by accident
2024-01-17 11:31:46 +01:00
Roy-043
744ef19866 Draft: Task panel checkboxes were repositioned by accident
In a previous PR of mine I have reorganized some lines of code in DraftGui.py without realizing that this would reposition checkboxes. This PR fixes that.
2024-01-17 11:00:40 +01:00
wandererfan
23e5673f46 [TD]Dimension validation improvements 2024-01-16 20:07:30 -05:00
Chris Hennes
a36f6bbc0a Merge pull request #11883 from wavexx/pch_build_fix
Fix build with precompiled headers
2024-01-16 14:06:34 -06:00
marioalexis
7b63799a7e Fem: Fix constraint arrows - fixes #6073 2024-01-15 19:21:09 -06:00
wandererfan
8db72263be [TD]fix Balloon parentage in tree 2024-01-15 15:44:12 -05:00
CalligaroV
adb1fcfed8 Preferences: reset preference pages parameters set without using "PrefWidgets" objects
Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-01-15 11:28:12 -06:00
marioalexis
bdb82b8f8a Fem: Remove pipeline node from analysis view provider - fixes #11175 2024-01-15 11:19:09 -06:00
Chris Hennes
f0a734fed0 Part/Toponaming: Refactor makeElementCompound
Refactor to address linter issues, breaking up large methods, renaming variables, etc.
2024-01-15 18:17:32 +01:00
Chris Hennes
8124c81a33 Tests/Toponaming: Add tests for makeElementCompound 2024-01-15 18:17:32 +01:00
Chris Hennes
979090169f App/Toponaming: Add addition TNP methods 2024-01-15 18:17:32 +01:00
Zheng, Lei
c59bced261 Part/Toponaming: Add original code for makECompound
Renamed to makeElementCompound and modified as little as possible to get it to compile in the new framework. All required auxilliary methods are also brought in.
2024-01-15 18:17:32 +01:00
mosfet80
0004597e0a Update Mesher.cpp
removed old code for smesh <v7.
Freecad now requre smesh  version >=7.7.1
2024-01-15 18:02:31 +01:00
mos
40be09c6fb updated nlohmann/json
updated to JSON version 3.11.3

Add missing <numeric> header include. #3717 #3718 #3719
Replace uses of INT_MIN/INT_MAX, etc. with

std::numeric_limits and consistently use std-namespaced integer types to make library work with newer GCC versions. #3722 #3723
Add missing files (json_fwd.hpp and Bazel build files) to release artifact include.zip. #3727 #3728
Fix 'declaration hides global declaration' warning. #3751
Fix natvis XML. #3858 #3863
Fix warning about moved from object. #3805 #3889
Remove a magic number to fix a warning. #3837 #3888
Fix debug pretty-printer by checking if match is valid before accessing group. #3919 #3920
Fix custom allocators by defining missing rebind type. #3895 #3927
Prevent memory leak when exception is thrown in adl_serializer::to_json #3881 #3901
Fix Clang-Tidy warnings. #4047
Fix init-list construction when size_type is not int. #4140
Fix deprecation warning "identifier _json preceded by whitespace in a literal operator declaration". #4129 #4161
Fix compile error with _HAS_STATIC_RTTI=0. #4046
Fix char_traits deprecation warning "char_traits<unsigned char> is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard". #4163 #4179
2024-01-15 10:53:38 -06:00
Alexander Neumann
2bf42925f5 Guard MEFISTO code with version check against SMESH. 2024-01-15 10:44:06 -06:00
edi271
71df82dad3 [TD] Solve issue in VertexAtIntersection 2024-01-15 09:46:33 -05:00
Chris Hennes
7d64c3af2f Merge pull request #11896 from Pesc0/toponaming-shapeprotector
Toponaming shapeprotector
2024-01-14 21:03:09 -06:00
Kacper Donat
cde5e00045 Gui: Reset scroll position after preference page change
As every page is contained in the same QScrollArea we must ensure that
after page is changed the scrolled area is scrolled back to top-left
corner.

Fixes: #11981
2024-01-14 20:19:48 -06:00
sliptonic
8fdb32f91f Merge pull request #11972 from br4243/Fix_for_Vcarve_missing_letters_8064
Fix for issue 8064 missing letters when V-carving a string.

Excellent work!  Thank you.
2024-01-14 13:26:14 -06:00
Bill Reese
1bb85de18d Fix for missing letters when V-carving a string.
Issue 8064 occurs when FreeCAD passes a Voronoi diagram to
Boost that becomes self-intersecting when Boost truncates the
diagram's coordinates to integers.  This occurs when the discretizer
slightly misses closing the polygon generated for the letter by less
that FreeCAD's epsilon, then the wrapping Python code closes the
polygon by adding the initial polygon point as the final point.
This creates a short segment that, depending on the position of
the letter in the coordinate system, may end up being moved one
Boost coordinate delta away from the intended point, which can
end up self-intersecting.
Since the miss is very small, FreeCAD should treat it as it it
were the initial point.  There's no need for a duplicate copy of
the initial point, so we remove this point close to the initial
point and let insert_many_wires() close the polygon as usual.
2024-01-13 12:41:26 -05:00
Syres916
8956452577 [Gui] Fix Status Bar Tooltip Visibility 2024-01-13 09:15:18 -06:00
pre-commit-ci[bot]
1c2e1b2758 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-13 09:59:54 -05:00
edi271
4e22e42410 [TD] extend App.Vector API 2024-01-13 09:59:54 -05:00
edi271
a01220180f [TD] extend Base::Vector3D 2024-01-13 09:59:54 -05:00
edi271
975642964c [base] Extend Vector by isParallel function 2024-01-13 09:59:54 -05:00
Paddle
7baa964dc6 Draw arc helpers for radius constraints. 2024-01-12 19:03:38 -06:00
Paddle
215870ca8c Improve angle constraint rendering. 2024-01-12 19:03:38 -06:00
Syres916
232cdfa89e [PartDesign] Revert #11357
See https://github.com/FreeCAD/FreeCAD/issues/11961#issuecomment-1889721739
2024-01-12 18:37:24 -06:00
Chris Hennes
67e533826f Part/Toponaming: Modify constructors to set owner of ShapeProtector 2024-01-12 10:00:45 -06:00
Pesc0
97c0dedabe Part/Toponaming: Pesc0's work replacing ShapeProtector
In realthunder's original version this class was not derived from TopoDS_Shape, but rather duplicated
its interface and wrapped its non-const methods. This resulted in quite a lot of boilerplate, so in
the merged implementation we are now deriving from TopoDS_Shape and only overriding the non-const
methods. The downside is that if OCCT adds or changes methods we will have to add them proactively
to this class so that they don't bypass the TNP code.
2024-01-12 09:57:33 -06:00
wandererfan
b727b17c5e [TD]fix missing \ in regex 2024-01-12 09:23:38 -05:00
wandererfan
e23b13b8d7 [TD]fix Dimension icons 2024-01-12 09:23:38 -05:00
wandererfan
df0cf92243 [TD]Revert detail to piecewise algo 2024-01-11 18:24:51 -05:00
Andrei Pozolotin
71a61cf423 Resolve #11825 - no automatic quantity conversion: App::anyToQuantity 2024-01-11 11:32:18 -06:00
Kevin Martin
359a3487ed Move the "Treat ellipses and splines as polylines" to DXF *output* options
This option control DXF export but was confusingly in the Import options area. Fixes #11659
2024-01-11 15:58:26 +01:00
Stefan Brüns
ffad094051 [App] Fix segfault due to missing Py_Initialize in StringIDRefTest
The PyObject desctructor requires an initialized interpreter, otherwise
PyGILState_Ensure crashes.

Fixes #11878
2024-01-10 22:34:04 -06:00
Roy-043
1bf512be84 Merge pull request #11946 from Roy-043/Draft-remove-reapply_diffuse_color-workaround
Draft: remove reapply_diffuse_color workaround
2024-01-10 18:51:49 +01:00
Roy-043
6ce705bc58 Draft: remove reapply_diffuse_color workaround
The function would trigger the creation of duplicate Draft Polar Arrays (only on Linux and only if the Fuse option is selected and the Link Array option deselected).
Forum topic:
https://forum.freecad.org/viewtopic.php?t=84090

The reapply_diffuse_color function is no longer required anyway as Issue #8340 has been fixed.
2024-01-10 16:46:49 +01:00
wwmayer
53549f8ad7 PD: Add test for helix (#11601)
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-10 07:26:18 -06:00
Paddle
fe3437d8c4 Property editor: Hide headers and enable resizing on all cells. 2024-01-09 19:50:20 -06:00
bgbsww
bd1fc0fc03 Add support for OCCT 7.8.0 (#11909) 2024-01-09 19:47:25 -06:00
pre-commit-ci[bot]
b1ee268d98 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-01-09 20:07:57 -05:00
wandererfan
e3d42e82a6 [Import]Flatten sketch before dxf export. 2024-01-09 20:07:57 -05:00
mosfet80
67508fdc9b Update CMakePresets.json
Updated requested cmake version, I used the same version present in cmakelist.txt
2024-01-08 21:30:10 -03:00
sliptonic
f952391cce Merge pull request #11927 from bdieterm/fix-path-profile
Path: fix wire midpoint calculation
2024-01-08 14:00:03 -06:00
looooo
a7e8141cba set INSTALL_TO_SITEPACKAGES to ON by default
and add some modules to the freecad-namespace (freecad.part, freecad.partdesign, freecad.sketcher)
2024-01-08 14:40:32 -03:00
Max Wilfinger
96d3e26110 sketcher: create contextual right click menu 2024-01-08 12:39:17 -05:00