Commit Graph

35581 Commits

Author SHA1 Message Date
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
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
sliptonic
d0c7dfcf05 Merge pull request #11933 from adrianinsaval/gitignore
Update .gitignore and remove unused file in FEM
2024-01-08 11:33:20 -06:00
Catalin MARINCIA
20b59ce9dd Build: Fix visibility of fields in Reader.h to be compiled with GCC 13 toolchain 2024-01-08 18:32:40 +01:00
Rexbas
317e8388ea Gui: Prohibit dragging using LMB in sketch mode for OpenSCAD style 2024-01-08 12:31:00 -05:00
sliptonic
4e22766a26 Merge pull request #11840 from maxwxyz/precise-toggle-command-description
Change the description of the default 'Toggle active object' command
2024-01-08 11:29:01 -06:00
Ajinkya Dahale
f9a71ae096 [PD] Fix reference axis selection in revolve/groove
Fixes #11713.
2024-01-08 14:19:57 -03:00
sliptonic
d6d6e4d80b Merge pull request #11779 from hasecilu/second_unit
[Base/Units] Change strings' description
2024-01-08 11:10:22 -06:00
Kevin Martin
c2fb684ff7 Streamline scaling for DXF import
Eliminate m_measurement_inch to clean up logic for priority of MEASUREMENT and INSUNITS.
Save the actual scaling factor rather than the scaling enum so a switch statement is not executed for each call to mm()
Add to CDxfRead the work to handle dxfScaling option, ImpExpDxfRead just has to set it up now.
Get the scaling factor from a lookup table rather than a switch statement
Display a message explaining what the scaling factor is and where it comes from
Remove large amount of Lint.
2024-01-08 18:01:21 +01:00
Syres916
51e4561fd7 [PartDesign] Hole, ignore duplicate circle/curve centers (#11773)
* [PartDesign] Hole, ignore duplicate circle/curve centers

* [PartDesign] Hole correct log output

* [PartDesign] Hole changes based on feedback
2024-01-08 13:55:16 -03:00
Alexander Neumann
c144160331 Remove code related to qtxmlpatterns (#11755) 2024-01-08 13:49:38 -03:00
sliptonic
b67b15fb21 Merge pull request #11750 from realthunder/FixActiveBody
Fix object path in active object when creating new body in App::Part
2024-01-08 10:47:45 -06:00
sliptonic
c1e32c4a17 Merge pull request #11733 from mosfet80/patch-6
Update sub_buildWindows.yml
2024-01-08 10:47:00 -06:00
mosfet80
441d08877b Update CI wokflows (#11732)
* Update CI_cleanup.yml

The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.

* Update sub_buildMacOSCondaApple.yml

update artifact to v4
Update sub_buildMacOSCondaIntel.yml

updated artifact to v4
Update sub_buildUbuntu2004.yml

updated artifact to v4
Update sub_buildUbuntu2204Conda.yml

updated artifact to v4
Update sub_buildWindows.yml

updated artifact to v4
Update sub_buildWindowsConda.yml
Update sub_lint.yml

updated artifact to v4
Update sub_wrapup.yml

update artifact to v4
Update sub_prepare.yml

updated artifact to v4

* Update CI_cleanup.yml

The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.
Update sub_buildMacOSCondaApple.yml

update artifact to v4
Update sub_buildMacOSCondaIntel.yml

updated artifact to v4
Update sub_buildUbuntu2004.yml

updated artifact to v4
Update sub_buildUbuntu2204Conda.yml

updated artifact to v4
Update sub_buildWindows.yml

updated artifact to v4
Update sub_buildWindowsConda.yml
Update sub_lint.yml

updated artifact to v4
Update sub_wrapup.yml

update artifact to v4
Update sub_prepare.yml

updated artifact to v4
2024-01-08 13:46:42 -03:00
bgbsww
1415e67b23 Correct mistaken Helix patch; use MakePipe for frenet for speed; add tests (#11598)
* Cleanup and switch to using MakePipe

* Cleanup unused include

* Use Frenet mode in building pipe

* Restore original code, add a control property

* Hide property, and init on new objects

* Restore prior behavior for legacy objects

* Clean up git blame; add missing move to keep helix same with new makePipe call

* Remove debug include

* Use doxygen syntax for deprecation comment

* Add unit tests; restore code for angled helixes; optimize zero angle helixes

* Lower test precision to accept platform variations

* Loosen more

* Correct restoration

* Tweak test volumes to match restored helix creation

* Restore helix generation parameter

* Fix test; delint
2024-01-08 13:43:38 -03:00
Adrian Insaurralde Avalos
f571e1b125 FEM: remove unused file 2024-01-08 11:34:56 -03:00
Adrián Insaurralde Avalos
c997473871 Update .gitignore 2024-01-08 11:27:22 -03:00
Roy-043
98cb407ff5 Arch: Improve selection of cutting object for Arch_CutPlane
This PR makes the selection of the cutting object more flexible. It can be a face, an edge or an object with a single subelement of that type. Any planar object can also be selected. This PR makes the Arch_CutLine command superfluous. It was therefore removed.
2024-01-08 10:58:30 +01:00
paullee
f33b973f49 [ArchWall] Fix getExtrusionData() with DraftWire base problem
See discussion on FreeCAD forum :
- https://forum.freecad.org/viewtopic.php?p=727868#p727868
( How to use the partdesign_subshapebinder for walls / Walls on "3d sketch"? )
2024-01-08 10:56:41 +01:00
Roy-043
f13935137e Arch: Arch_Window fix and improve handling of hosts
Fixes a problem introduced with a previous PR of mine (#7591). Hosts would only be touched if that property of the window was modified. But the hosts of a window should also update if other properties of the window change.

Additionally a width or height change of a window now touches the hosts on the subsequent shape change.
2024-01-08 10:53:20 +01:00
Roy-043
72aaf182ea Arch: Arch_Project avoid ghosts of objects in Group 2024-01-08 10:52:15 +01:00
Roy-043
1630c44067 Arch: Arch_Window: wrong value for Frame property
The Frame property controls the extrusion of the window components. It should receive the w2 instead of the h1 value.
2024-01-08 10:33:44 +01:00
Paddle
621b4bd5fc Sketcher_dimension : Fixes https://github.com/FreeCAD/FreeCAD/issues/11904 2024-01-07 20:53:22 -06:00
bdieterm
2428f67980 Path: fix wire midpoint calculation 2024-01-07 21:23:13 +01:00