Commit Graph

38548 Commits

Author SHA1 Message Date
bgbsww
d8fcd79dbe Toponaming: Run black on the entire toponaming python test file. 2024-08-26 11:19:47 -05:00
Chris Hennes
0d293e0655 Merge pull request #15987 from obelisk79/classicfix
Fix FreeCAD Classic cfg file to explicitly reassign theme defaults.
2024-08-26 11:18:21 -05:00
wmayer
c30d42c441 Core: Rename ViewProviderPythonFeature to ViewProviderFeaturePython
Fixes #15888
2024-08-26 18:14:22 +02:00
bgbsww
e4a509cc77 Toponaming: Remove all FC_USE_TNP_FIX protected old code 2024-08-26 11:12:48 -05:00
bgbsww
cb59c2ed63 Horrible hack to work around bug in OCCT7.7.2 2024-08-26 18:09:38 +02:00
paul
664f4d5655 [ArchWall_Draft-OffsetWires] Bug-fix Ellipse Support (#16038)
* [ArchWall_Draft-OffsetWires] Bug-fix Ellipse Support

Fixed bug/regression in ArchWall/Draft-OffsetWires ellipse support.

FC Forum Discussion
- https://forum.freecad.org/viewtopic.php?p=777965#p777897

* Update offsets.py

Typo

* L347 - trailing whitespace after comma
2024-08-26 18:03:21 +02:00
wandererfan
0d4b04deb3 [TD]fix false positives in isCircle (fix #15979) 2024-08-26 18:01:00 +02:00
Chris Hennes
1e0ac05c7b Merge pull request #16045 from wwmayer/format_measure
Measure: Prepare for clang-format
2024-08-26 10:57:13 -05:00
wmayer
1df78febf3 Part: Prepare for clang-format 2024-08-26 17:56:58 +02:00
Chris Hennes
40d58745cb Merge pull request #16041 from mosfet80/patch-16
Update libs into .pre-commit-config.yaml
2024-08-26 10:54:47 -05:00
bgbsww
f9e79d851d Ignore standalone points in sketches when building faces 2024-08-26 17:51:29 +02:00
bgbsww
5c2bd8b57e Update to Toposhape versions and fix shapebinder references with test (#16036)
* Update to Toposhape versions and fix shapebinder references with test

* Update src/Mod/PartDesign/PartDesignTests/TestShapeBinder.py

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-08-26 10:50:18 -05:00
Kacper Donat
e2b9c82c11 Gui: Ensure minimum size of preferences dialog (#16019)
* Gui: Ensure minimum size of preferences dialog

This will ensure that the width of preferences dialog is resized to fit
all pages properly but not take more than 80% of screen.

* Gui: Use consts for resizing preferences dialog
2024-08-26 10:48:49 -05:00
MisterMaker
64c2dbc804 Overlay blur fix + slightly less white background (#15886)
* remove bluw changed the white background to 2 steps below white

* Delete CMakeSettings.json

* Revert "remove bluw changed the white background to 2 steps below white"

This reverts commit a8cab51f0eb6fc5eb6cb3644d1d13f9421a9b05d.
2024-08-26 10:48:00 -05:00
Chris Hennes
820aa9f9de Merge pull request #16021 from jbaehr/material-add-machining-wood-cards
Material: Add wood cards with machining model
2024-08-26 10:38:22 -05:00
wmayer
18cd67c64f Linux: Fix regression with mask of cursors if platform name is 'xcb' 2024-08-26 10:35:53 -05:00
Hannu Koivisto
f155d2e272 Fix crash when using box selection with Arch Survey
doSelect() loops over document's object vector.  It can happen that, within
the loop, Gui::Selection().addSelection() gets called and that ends up
calling App::Document::addObject() which pushes an object to the vector that
the loop is traversing.  If the vector is full, its storage is reallocated
and this means that later iterations of the loop are using invalid iterators.
Thus, one ends up with a bogus obj pointer and there will be a crash within
getGroupOfObject().  The problem was observed when using Arch Survey.
2024-08-26 17:33:55 +02:00
Roy-043
7d1efa9df2 BIM: Arch_Survey: Fix concatenate bytes issue
The line `t = t.encode("utf8")` returns a bytes object which does not make sense in the context of the rest of the code. It is probably a copy-paste error.

To test the bug:
1. open the file attached to this forum post: https://forum.freecad.org/viewtopic.php?t=89012#p770224
2. Make the rectangles visible.
3. Start the Survey command and box select all objects in the 3D view.
2024-08-26 17:31:59 +02:00
obelisk79
fba9a9a0a3 add missing start WB values 2024-08-25 23:11:29 -04:00
obelisk79
dffa1bb350 Resolving discrepancies. 2024-08-25 23:08:28 -04:00
Chris Hennes
cc439c83af Merge pull request #15958 from AjinkyaDahale/sk-fix-14736
[Sketcher] Attempt to fix #14736
2024-08-25 21:27:00 -05:00
Kacper Donat
953bed50d2 Gui: Fix issue with missing icons in sketcher
This boiled down to conflict of using `data` attribute of the QAction in
ActionGroup and ToolBarManager. I reworked ActionGroup here to not use
the data attribute but this is not a proper solution - but it should be
working well enough.

Proper solution would be to leave the data for the specific usecases (like index)
and store the command name in some other place. It would however require
us to subclass the QAction which is not something that should be done so
late in the release cycle.
2024-08-25 19:40:25 -05:00
Alfredo Monclus
3251400949 fix(PD): threadtype combobox too small for metric fine 2024-08-25 19:35:25 -05:00
David Carter
7a0d9c2662 Rename *Impl.py to Imp.py 2024-08-25 19:32:02 -05:00
Ajinkya Dahale
2c6817d796 [planegcs] Support circle-to-circle tangent when centers coincide
This simply implies avoiding some NaN's when computing error or gradient.
2024-08-25 23:20:41 +05:30
pre-commit-ci[bot]
7c6b8cc9ab [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-25 11:42:43 +00:00
wmayer
7cf6c4f5df Measure: Prepare for clang-format 2024-08-25 13:39:38 +02:00
pre-commit-ci[bot]
09386be6a9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-08-25 07:29:42 +00:00
mosfet80
97b58f855f Update libs into .pre-commit-config.yaml
Updated libs to last  version
https://github.com/psf/black/tags
https://github.com/pre-commit/pre-commit-hooks/tags
https://github.com/pre-commit/mirrors-clang-format/tags
2024-08-25 09:26:39 +02:00
Ajinkya Dahale
4d447bcb24 [Sketcher] Fix #14736
Recompute even if the addition of new elements and autoconstraints failed
partially.
2024-08-25 07:33:59 +05:30
Ajinkya Dahale
0d32b98e14 [Sketcher] Use modernized geometry type checks 2024-08-25 07:33:59 +05:30
Ajinkya Dahale
d03464b7d6 [Sketcher] Fix endpoint-to-endpoint/edge tangency substitution
Only substitute if the point(s) involved are `start`/`end`. Centers do
not make sense here.
2024-08-25 07:33:59 +05:30
Chris Hennes
c536d613b0 Gui: Workaround for #14350 2024-08-24 20:40:33 -05:00
Florian Foinant-Willig
096c5d215b [PD] helix fix 2024-08-24 20:38:58 -05:00
CalligaroV
c8e1bea243 Part/Toponaming: use TopoShape::getShape() in PartFeatures.cpp tests and TopoShapeMakeElementRefine.cpp tests
* Replace TopoShape::getValue() with TopoShape::getShape() to test the size of element maps
 * Update the expected values

Signed-off-by: CalligaroV <vincenzo.calligaro@gmail.com>
2024-08-24 19:54:33 -05:00
Andrea
4957477f67 Update ViewProviderFemMesh.cpp
fix warning: variable 'j'and 'i' is not initialized
[pre-commit.ci] auto fixes from pre-commit.com hooks

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

Update ViewProviderFemMesh.cpp
[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
2024-08-24 19:53:10 -05:00
marioalexis
9c92f93452 Fem: Disconnect connection when destroying Constraint object 2024-08-24 19:51:24 -05:00
Chris Hennes
8b91bcb902 Addon Manager: Adjust button reference for Qt6 compatibility 2024-08-24 19:40:27 -05:00
Chris Hennes
63f8b6c0a9 Part: Fix compilation with Qt6/MSVC
-/permissive does not allow the original unwrapped call to ParseTupleAndKeywords
2024-08-23 20:45:26 -05:00
Jonas Bähr
a18a0b1cbf Material: Add wood cards with machining model
With PR FreeCAD#14460 the "machinability" model was introduced.
This commits adds material cards with complete machining model data
for various types of woods and engineed wood products.
The data comes from the German text book "Zerspanung von Holz und
Holzwerkstoffen", ISBN 978-3-446-47769-8, 2. Edition 2023,
https://www.hanser-fachbuch.de/fachbuch/artikel/9783446477698
Usage of this data for our purpose is legal as facts are not protected by
copyright according to German law.
2024-08-23 21:57:31 +02:00
xtemp09
3ec31ef59b Reimplementation of Light source dialog (#15877)
* Reimplementation of Light source dialog

Closes #15793.

* Gui: Remove redundant void arguments

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-08-22 18:58:14 -05:00
luzpaz
b2f549f114 Measure: fix linting TaskMeasure.cpp
Adds missing whitespace before opening brackets (observed in #15907)
2024-08-22 18:54:45 -05:00
bgbsww
9de8fc9bec Fix shape color / materials issues in fuse 2024-08-22 18:53:55 -05:00
bgbsww
e020d9d5aa Toponaming fix #15969 following LS3 code change 2024-08-22 18:52:22 -05:00
wmayer
7d492c9f64 Building: Boost dependency errors
Fixes #15999
2024-08-22 18:50:24 -05:00
bgbsww
27423dbb39 Toponaming: Support disabling hashing; getting element history 2024-08-22 11:24:09 -05:00
Shai Seger
778107939c Cam simulator feature update (#15597)
* remove redundant code

* Improve lighting, add ambient occlusion

* Add cleanup code. Dialog is now deleted when cloesd.

* change back to ambient occlusion

* Fix G8x drill sequence bug.  issue #14369

* fix bad simulation artifacts under Linux and QT. Issue #14369

* fix merge issue

* fix border artifact on buttons

* support showing path lines. revise the gui.

* add option for arbitrary solids. wip

* use vectors instead of mallocs

* Handle arbitrary stock shapes + show base shape.

* Complete the base shape display feature. eliminate co-planar artifacts.

* support window scaling. upstream issue #14334

* Apply lint fixes

* some missing lints.

* Attend pylint issues

* Apply code fixes based on @kadet1090 review

* fix some clang-tidy warnings.

* CAM: Linter cleanup round 1

---------

Co-authored-by: Chris Hennes <chennes@gmail.com>
2024-08-21 15:18:52 -05:00
wmayer
c4a506146f Part: Make ViewProviderPart::applyMaterial more robust
* Fixes hard crashes and throw an exception if value is out of range
* Fixes several linter warnings
2024-08-21 18:40:27 +02:00
obelisk79
e34b8c80e4 Fix FreeCAD Classic cfg file to explicitly reassign theme defaults. 2024-08-21 07:31:00 -04:00
luzpaz
5f4a43a34f labels.yml: changed label to 'Mod: Measurement' 2024-08-20 17:26:26 -04:00