Commit Graph

40317 Commits

Author SHA1 Message Date
Kacper Donat
cc2efa90f8 Base: Add isNullOrEmpty string helper
This adds isNullOrEmpty string helper that cheks if string is... well
null or empty. It is done to improve readability of the code and better
express intent.
2025-02-21 15:04:43 +01:00
Lukas Neubert
8c8179feb9 readme: fix discord invite 2025-02-21 08:06:16 +01:00
Alfredo Monclus
13ffd95469 style: simplify fx icon to be more legible at small sizes 2025-02-20 19:59:56 +01:00
lorenz
dcaf752b16 add option to disable check for pivy at build-time (#19718)
Co-authored-by: João Matos <joao@tritao.eu>
2025-02-20 08:32:58 -03:00
xtemp09
cc313b84fa [Spreadsheet] Fix popup close issue (#19676)
* [Spreadsheet] Fix popup close issue
2025-02-19 15:49:11 -06:00
Roy-043
af96e50eea Draft: improve upgrade and downgrade
Fixes #16333.
Follow-up of #19487.

* The functions have been made nesting-aware. New objects are put in the same container (Group, Part) as the original objects. As a consequence for some operations the original objects must be in the same container as well.
* New objects receive the visual properties of the original objects. This is not always perfect. For example when upgrading to multiple wires there is currently no check to see which edge came from which orginal object. The fact that the `format_object` function is called from the Draft `make*` functions is problematic here. If construction mode is active `make_wire` puts new objects in the construction group and we don't always want that. This has been solved with a workaround (see 'cludge' in the code).
* The 'de-parametrize' downgrade option has also been enabled for features of PartDesign Bodies that have the `Profile` property.
* Before deleting objects there is a check to see if they are in use elsewhere (`InList` check). Base objects of arrays are not deleted if they are visible. If a PartDesign Body, or an object inside a Body is selected, the whole Body is deleted.
* The force options did not work for functions that take a single object.
* The `getShapeFromMesh` function in ArchCommands.py could return a solid that was not closed. A check for that has been added.
2025-02-19 18:06:12 +01:00
Yorik van Havre
98c26abc64 BIM: Do not change important pref options without user's consent - fixes #19163 2025-02-19 12:27:32 -03:00
Joao Matos
7f7c93b6ec Git: Ignore extra suffixed build directories.
Its pretty helpful when developing to have multiple build directories
for different branches.

This adds such pattern to .gitignore to be able to have a sane Git
experience.
2025-02-19 10:08:46 -03:00
Benjamin Bræstrup Sayoc
6f619b5f1c Base: remove unneeded includes 2025-02-18 11:07:57 -06:00
Furgo
e045b59dbb Fix one last instance of NativeIFC 2025-02-18 13:22:23 +01:00
Furgo
0ea1bba8f8 Use correct case 2025-02-18 13:22:23 +01:00
Furgo
45f3f8de64 Improve legibility of NativeIFC in preferences 2025-02-18 13:22:23 +01:00
JULIEN MASNADA
056c83711a [BIM] SH3DImporter: miscellaneous improvments (#19335)
* Fix duplicated groups

* Fixed windows spaning several floors

* Fixing doorOrWindow positioning. Allowing to DEBUG_GEOMETRY

* Fixed default color for floor and ground

* Fixed some windows positioning issue

* Fixed invalid modification of wall array. Changed default window type to allow opening

* fixed some import failures. Added some new windows

* Fixed some more edge cases

* Use doc transaction. Fixed import of room based on self-intersecting polygon.

* Added default furniture color. Fixed wall reference face to fix slab creation

* Replace Debug setting by DebugGeometry

* Fixed corner cases when importing Door & Furniitures

* Fix emissive color and shininess

* Remove external package dependency

* Fixed furniture placement and transformation

* Make sure lights are properly imported

* Fixed duplicated camera and ground when merging
2025-02-18 11:45:40 +01:00
luzpaz
fcead8f7e0 FEM: Misc. uniformity fix in CreateLabels.py 2025-02-18 07:59:17 +01:00
Benjamin Nauck
0ba52f0e22 Make modulo require units to be same or dimensionless
Fixes #19517
2025-02-17 11:31:17 -06:00
ᴩʜᴏɴᴇᴅʀᴏɪᴅ
82b5ce2d10 [ Doxygen ] Improved Param Group Subgroup Methods (#19546) 2025-02-17 11:24:05 -06:00
Florian Foinant-Willig
8b8e29a032 TechDraw: Add a format spec. to round a value 2025-02-17 12:18:26 -05:00
Benjamin Bræstrup Sayoc
6d544d5599 Remove magic number and hard type enums in DrawBrokenView.h
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
ea26b3f18c Remove magic number and hard type enums in CenterLine.h
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
c53679422b Remove magic numbers and hard type enums in DimensionFormatter.h.h
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
97b34f9c57 Remove magic number and hard type enums in Geometry.h
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-02-17 12:16:49 -05:00
Lawrence Woestman
033817f5fe CAM: Fixed F parameter handling for only rotary axes
with tests
      and the commit for converting the refactored*
      postprocessors to the new API
2025-02-17 11:10:40 -06:00
Chris Hennes
57ebceec01 Merge pull request #15690 from bgbsww/bgbsww-toponamingAddFeatureRefine
Toponaming add feature refine class
2025-02-17 10:28:32 -06:00
Chris Hennes
c18a671f99 Merge pull request #19591 from benj5378/qStringLiteral2
Use QStringLiteral 2
2025-02-17 10:25:31 -06:00
mac-the-bike
6fcbafb121 FEM: Animation of Results (#18496) 2025-02-17 10:24:09 -06:00
Chris Hennes
4698042deb Merge pull request #19524 from marioalexis84/fem-zrefine
Fem: Add Z-refinement support for Netgen
2025-02-17 10:19:26 -06:00
Furgo
226f67a1e8 Start: add optional custom folder view (#19473)
* Start: add optional additional folder view

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

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

* Added logic to migrate ShowCustomFolder parameter

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

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

* Rename Additional to Custom folder

* Change Start page text to sentence case for consistency

* Fix breakage created by pre-commit.ci

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

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

* Rearrange migration logic to make it more explicit

* Revert "Change Start page text to sentence case for consistency"

This reverts commit 8a31a1238c0380ddbe13e6e5838a3be6b13400a5.

* Make parameterGroup local

* Apply suggestions and linter improvements

* Adapted suggestion to simplify migration logic

* Start: Warning -> Message for rename of ShowCustomFolder

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-02-17 10:18:35 -06:00
tritao
4aa845795e Part: Clean up XML bindings. 2025-02-17 10:18:01 -06:00
bofdahof
aff9ef4499 CMP0167 re Boost 2025-02-17 10:17:32 -06:00
mosfet80
6ff09ebf0d Update pixi (#19625) 2025-02-17 10:17:03 -06:00
Chris Hennes
5f5085715b Merge pull request #19627 from alfrix/featurehole_refactors
refactor(PD): Featurehole optimizations and cleanups
2025-02-17 10:16:37 -06:00
Alfredo Monclus
d99b90d9bb refactor: hole taskpanel tweak layout spacing 2025-02-17 10:16:06 -06:00
Benjamin Bræstrup Sayoc
34a77cfbb7 Tests: use QStringLiteral 2 2025-02-17 12:44:27 +01:00
Chris Hennes
0a30b47f3f Update src/Mod/PartDesign/App/FeatureRefine.h
Co-authored-by: Florian Foinant-Willig <FlachyJoe@users.noreply.github.com>
2025-02-16 13:56:54 -06:00
Benjamin Bræstrup Sayoc
06fa035126 TechDraw: use QStringLiteral 2 2025-02-16 19:52:30 +01:00
Benjamin Bræstrup Sayoc
eeca005a95 Gui: use QStringLiteral 2 2025-02-16 19:52:30 +01:00
Benjamin Bræstrup Sayoc
5f86a65a5e Base: use QStringLiteral 2 2025-02-16 19:52:23 +01:00
Benjamin Bræstrup Sayoc
bfb5dfe5da Material: use QStringLiteral 2 2025-02-16 19:50:34 +01:00
Chris Hennes
0b3ccdf836 PD: Combine onlyHaveRefined and onlyHasToRefine
Co-authored-by: Florian Foinant-Willig <FlachyJoe@users.noreply.github.com>
2025-02-16 11:25:45 -06:00
mosfet80
239e4522ec Update CMakeLists.txt
cmake version is always greater than 3.8.
2025-02-16 10:22:31 -06:00
Joao Matos
aace8f7bee CMake: Modernize build files using outdated Python variables. 2025-02-16 10:21:26 -06:00
Andrea
146d8a356b change MIN_boost_version
ubuntu version 20.04 is no longer supported.
The minimum boost version used for freecad is now 1.74 (ubuntu 22.04) https://launchpad.net/ubuntu/jammy/+package/libboost-system-dev
2025-02-15 13:33:32 -06:00
Alfredo Monclus
4eaf1de256 refactor(PD): simplify setreadonly on type switch 2025-02-15 16:12:49 -03:00
bofdahof
0931abe4d5 Add Vtk to cmake report 2025-02-15 10:22:09 -06:00
Alfredo Monclus
6ad155dff3 refactor(PD): reduce the number of comparisons 2025-02-15 06:29:04 -03:00
marioalexis
99d7e07bea Fem: Do not update mesh if process ends with errors 2025-02-14 18:13:52 -03:00
marioalexis
3eec651715 Fem: Add Z-refinement support for Netgen 2025-02-14 18:13:52 -03:00
Ziad
4bad514bd7 PartDesign: Allow Draft negative angles 2025-02-14 14:57:14 -06:00
Chris Hennes
9656bdb9fb Merge pull request #19468 from hyarion/AIRCAP_fixCompoundCuts
Part: OCCWrapper: Fix compound cuts
2025-02-14 14:16:17 -06:00
Benjamin Nauck
0128e267ce Add [[nodiscard]] to Vector3 (#19544)
* Add nodiscard to vector3
2025-02-14 14:14:45 -06:00