Commit Graph

35556 Commits

Author SHA1 Message Date
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
mosfet80
847cda76f0 Update sub_buildWindows.yml
switch to python 3.9
updated upload-artifact to v4
updated actions-checkout to v4
Update sub_buildWindows.yml

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-07 01:59:35 +01:00
Chris Hennes
757d3e3cd7 Merge pull request #11768 from oursland/mamba-devenv-no-prune
CI: Fix issues affecting conda devenv installation resulting in failures.
2024-01-06 18:42:23 -06:00
Chris Hennes
47c54f9971 Merge pull request #11786 from Syres916/PD_Fix_Combobox_Issue
[PartDesign] Sprocket fix bug with translated references
2024-01-06 18:31:18 -06:00
bgbsww
f2c9d1e409 Adding additional TNP tests (#11829)
* Initial tests for Chamfer, Fillet, Compound

* Lint cleanup, new tests

* Outline of Extrusion and Revolution

* Use python to define a 2d object to extrude and test

* Refactor; start filling in revolution tests

* Example of parameterized tests in Extrusion, cleanups

* Use gtest framework for parameterised tests

* Rearrange for clarity

* WIP with TEST_P use for posterity

* Switch from parameters to individual tests

* Guess at test failures on other platforms

* Cleanups and Revolution Tests

* Remove temp code

* Switch Revolutions to boundbox test; add Compound subshape count test

* Calculate test volume correctly; lint fixes

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-06 18:25:44 -06:00
bgbsww
494cb9388c Detect circular references in sketches, and add corresponding tests (#11716)
* Possible fix for 10482 circular reference regression with tests

* Remove redundant test

* Cleanup pre PR

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-06 18:13:44 -06:00
David Carter
d9017bcca3 Material: Material editor enhancements (#11764)
Continues the work of the material subsystem improvements.

Add support for embedded SVG files. These are not the same
as image files so need to be handled differently.

Add the ability to filter materials in the editor when called from
code. This allows programs to select objects supporting specific
models, complete models, older models, etc.

Updated tests, and refactored code.

New models and materials supporting patterns such as used by the
TechDraw workbench.

fixes #11686 - checks for the presense of a model property before
assinging a value. This can happen when a required model definition is
not available.

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-01-06 18:11:53 -06:00
wandererfan
08612d4489 [TD]fix duplicate unscale of CosmeticVertex 2024-01-06 08:43:25 -05:00
M G Berberich
970b1048f0 german ISO 7200 templates for TechDraw 2024-01-06 08:42:06 -05:00
Max Wilfinger
44dfb959dc add placement command to context menu 2024-01-05 19:14:02 -06:00
bgbsww
5165127dfa Provide a default axis for polar patterns in multitransformation 2024-01-05 11:28:45 -06:00
Alex Neufeld
917990f8c4 Fix Rotation constructor error msg 2024-01-05 11:10:10 -06:00
Roy-043
f8cdce8594 App: improve tooltip for ActiveObject
Also some minor spelling fixes.
2024-01-05 11:09:05 -06:00
David Lanzendörfer
55cddc51c0 Adding version check (#11795)
* Adding version check

* Add compat component for Qt6

* Remove too many qts

* Fix include path

---------

Co-authored-by: David Lanzendörfer <leviathan@libresilicon.com>
2024-01-05 11:08:13 -06:00
Max Wilfinger
e1b69d6f18 Change tool description of rotate and polygon tool to hint users to modify with U and J keys. 2024-01-05 11:07:09 -06:00
Chris Hennes
74cdb9cae3 Merge pull request #11841 from Rexbas/navigation-context-menu-fixes
Right click context menu fixes
2024-01-05 10:03:57 -06:00
Kacper Donat
537d153173 Gui: Allow narrower preferences dialog
This commit introduces optional horizontal scrollbar, looses up the minimum size applied to dialog and narrows a dialog a little bit by default.
2024-01-05 09:46:16 -06:00
Florian Foinant-Willig
48dd1614d6 Sketcher: fix one point distance (#11854) 2024-01-05 09:29:28 -06:00
bdieterm
ddcf247489 Gui: fix ignored default shape color 2024-01-05 09:27:28 -06:00
Max Wilfinger
15d8a7aa17 add capabilities to auto-dimension tool to dimension distances between arc-point, arc-circle, arc-arc 2024-01-05 09:25:53 -06:00
Roy-043
0d4c067880 Merge pull request #11902 from Roy-043/Draft-gui_snapper-setTrackers-can-be-called-if-there-is-no-3D-view
Draft: gui_snapper: setTrackers can be called if there is no 3D view
2024-01-05 12:53:24 +01:00
Roy-043
8ea799bd61 Draft: gui_snapper: setTrackers can be called if there is no 3D view 2024-01-05 10:50:46 +01:00
Chris Hennes
fce7dea6f7 Update translations (#11886)
* Update translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-03 09:27:18 -06:00
sliptonic
9bfb752a34 Merge pull request #11811 from Roy-043/Gui-sWhatsThis-for-Std_MacroStepInto
Gui: sWhatsThis for Std_MacroStepInto
2024-01-01 12:46:35 -06:00
wandererfan
4e6dc1ca50 [TD]fix positioning of secondary views 2024-01-01 13:45:30 -05:00
sliptonic
70bc10a5d9 Merge pull request #11808 from luzpaz/typos-12-2023
Fix typos
2024-01-01 12:44:49 -06:00