Commit Graph

37581 Commits

Author SHA1 Message Date
wmayer
fd7f6039b6 Main: Apply clang-format 2024-06-03 12:51:36 +02:00
marioalexis
ac533ef3f1 Part: Rename ViewProviderPartExtPy class files 2024-06-03 12:48:15 +02:00
bgbsww
77fc1de6c3 Toponaming: remove unused method with compile warnings 2024-06-02 18:55:13 -05:00
wmayer
26714820cd Fix compiler warnings 2024-06-02 14:59:45 +02:00
wmayer
859d47bac7 Measure: Fix exception handling
If a Base::Exception is thrown in Measurement::getShape() then it's handled by the catch(...) handler and
converted into a Base::RuntimeError. This behaviour hides the original Base::Exception.

Example:
Selecting a datum plane raises the error 'Measurement: Unknown error retrieving shape' because the
original Base::ValueError isn't forwarded.
2024-06-02 08:15:57 +02:00
bgbsww
669f2da362 Toponaming: fix bug with points in sketches 2024-06-01 22:57:31 -05:00
David Carter
8b5a3b1124 Material: Appearance Updates 2
Improves the use of the ShapeAppearance property for the Part workbench.

    removes DiffuseColor property
        adds Python compatibility using custom attributes
        transitions DiffuseColor to ShapeAppearance on open
    Improved UI elements for setting object appearance, and appearance per face
    Lays the foundation for future texture support
2024-06-01 19:57:16 -05:00
bgbsww
958d83ed06 Toponaming: Restore use of AttachmentSupport 2024-06-01 11:49:58 -05:00
wmayer
91aac05021 Fixes #14349: GeoFeature::getElementTypes causes undefined behaviour 2024-05-31 11:42:01 +02:00
wmayer
38d4fa3d6e tests: Add unit tests for getElementTypes() 2024-05-31 11:42:01 +02:00
Yorik van Havre
6ea5c7985c BIM: added missing items in utils menu 2024-05-31 10:10:18 +02:00
Yorik van Havre
64bc7e355f BIM: Reworked menus and toolbars 2024-05-31 10:10:18 +02:00
Yorik van Havre
dd7a8c3eba Draft: Fixed ghosts vanishing when using mouse delay - issue #12624 (#14358) 2024-05-30 22:41:54 +02:00
Yorik van Havre
f11b08bde5 BIM: Fixed import in importSHP - fixes #14261 (#14385) 2024-05-30 22:34:57 +02:00
Yorik van Havre
a877b36b70 BIM: Fixed IsActive of BIM commands (#14384) 2024-05-30 22:33:43 +02:00
hoshengwei
79ada18d69 fix Native IFC Qt6 Support 2024-05-30 11:50:35 +02:00
hoshengwei
e64a977398 fix BimView Qt6 Support (renew) 2024-05-30 10:52:41 +02:00
hoshengwei
127f9b3492 fix BimView Qt6 Support 2024-05-30 10:52:41 +02:00
Ladislav Michl
0f6dbdb3d4 BIM: Move urls outside translated strings
Leaving urls outside translated strings prevents translations
from being updated on url change.
2024-05-30 09:39:01 +02:00
wmayer
ffad1e0c34 Mod: Fix several compiler warnings 2024-05-30 08:55:11 +02:00
ii8
19dae94f01 Base: fix build on musl libc 2024-05-30 08:49:25 +02:00
wandererfan
7d6e9b19fb [TD]add style options for broken view 2024-05-29 14:12:13 -04:00
sliptonic
0e3057b28c contributors 2024-05-29 19:18:02 +02:00
Max Wilfinger
fdbe24b277 Update templates to new FreeCAD icon. 2024-05-29 08:44:54 -04:00
wmayer
4185605d5e clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors 2024-05-29 13:37:07 +02:00
Roy-043
df68858765 BIM: change default for defaultWP to Top
Setting the WP to "Auto" is confusing for beginners. That is why this was changed to "Top" in the Draft WB. The same should happen in the BIM WB.
2024-05-29 11:40:48 +02:00
Florian Foinant-Willig
520f28687a Name myself in CONTRIBUTORS 2024-05-29 10:54:59 +02:00
David Carter
4f9b441604 Materials: Correct issue with UTF8 path
The YAML library is unable to open files with UTF8 paths
2024-05-29 10:54:03 +02:00
sliptonic
6469ec84fe fix color preference dialog (#14343) 2024-05-28 17:36:47 -05:00
obelisk79
88a5853657 Cam sim fix (#14275)
* Resolves missing include for GCC14 compilers

* Resolves build issues with Qt6 by removing unused include and function call.

* Revert "Resolves missing include for GCC14 compilers"

This reverts commit ad7fc0379dc1c0ae97120e1d89fe1fd8bbbe4c43.
2024-05-28 07:57:42 -05:00
phaseloop
888ffcf6d5 [CAM] VCarve improvements (#14093)
* Add stepDown setting to Vcarve Op

* fix UI issued, add finishing pass to Vcarve

* Improve step-down performance, add debugVoronoi()

* add debugVoronoi method

* Add movement optimization

* add CAM/Vcarve unit-tests

* Disable debugging mode

* Cache caller info in debug method

* Format code
2024-05-28 07:57:07 -05:00
paul
797f8f9cf3 [ArchWall] Add Offset per Edge Feature (#14277)
* [ArchWall] Add Offset per Edge Feature

ArchWall.py - Add Override Offset property & ground work for Multi-Layer Wall
Offsets.py - Add offset per edge support to ArchWall

Forum Discussion :
- https://forum.freecad.org/viewtopic.php?p=759634#p759634

* [ArchWall]  Fix bug found by unit test

'off' is no longer used, 'offsets' is used.
2024-05-28 10:39:21 +02:00
Roy-043
e47f29d012 BIM: fix missing translate function 2024-05-28 10:23:14 +02:00
Ladislav Michl
0b82e6e8ec BIM: Make buildPsets python3 friendly 2024-05-28 10:18:06 +02:00
Ladislav Michl
817167b424 BIM: Fix url to IFC on buildingSMART 2024-05-28 10:18:06 +02:00
Yorik van Havre
f07857e8dc BIM: Fixed wall paramerers - fixes #14283 (#14315) 2024-05-28 09:51:52 +02:00
Roy-043
524b106ea8 Draft: fix _get_shapes in shape2dview.py (#14319)
Fixes #14312.

The `new _get_shapes` function could return the original object shape. This caused a problem if `sh.reverse()` executed.

Note that the file in the linked issue does not produce the error as it does not contain a shape with a negative volume.
2024-05-28 09:45:48 +02:00
Roy-043
8bcbeae68b Draft: Draft_Layer new Material handling (#13949)
Discussion: #13657.

This PR adds  the ShapeAppearance view property to Draft Layers.

The DefaultShapeColor is used for the DiffuseColor of the ShapeAppearance material. Other material properties are not based on the preferences when a layer is created.

The old ShapeColor and Transparency properties remain (ShapeColor as a hidden property) and are kept in synch with the ShapeAppearance. This is consistent with how ShapeAppearance is implemented in Core.

The gui_layers.py and make_layer.py files do not have to be changed. They manipulate the vobj via the mentioned old properties.
2024-05-28 09:45:05 +02:00
obelisk79
3eb45b045c [UI] Logo Update (#14284)
* Updating instances of FreeCAD's old logo to reflect the new Logo

* updating additional instances of the Logo

* updating additional instances of the Logo

* Update logo for windows installer

* Update logo reference to /src/Gui/Icons/freecad.svg
2024-05-27 15:33:55 -04:00
wmayer
e67502025d Sketch: Add test case for validating constraints 2024-05-27 19:15:18 +02:00
wmayer
948d747c6c Sketch: Add test case for deleting constraints with external geometry 2024-05-27 19:15:18 +02:00
wmayer
e96ac0b1db Sketch: Add test case for degenerated geometry 2024-05-27 19:15:18 +02:00
wmayer
cdec6dd1a2 Sketch: Fix TestSketchValidateCoincidents 2024-05-27 19:15:18 +02:00
Syres916
f52a039811 [Sketcher] Add new Fix Missing Coincident test 2024-05-27 19:15:18 +02:00
David Carter
1bcf8ac9dc Material: Material Filter API (#14292)
* Naterial: Material Filter API

Adds a material filtering function to the
MaterialManager Python object

* Remove whitespace
2024-05-27 12:00:39 -05:00
PaddleStroke
cecb965f50 Assembly: Add 'Angle', 'Perpendicular' and 'Parallel' joints. 2024-05-27 11:59:06 -05:00
Kuzma30
32b55a6c1c Fix potential problems. https://forum.freecad.org/viewtopic.php?t=70256#p762073 2024-05-27 11:57:26 -05:00
Kuzma30
bb4ef6dae2 Use for predefined filename string its Label value 2024-05-27 11:57:26 -05:00
Max Wilfinger
9d0320198f Revert UI command change in Sketcher and PartDesign 2024-05-27 11:51:02 -05:00
dzid26
61e5c27065 Enforce OpenMP version 4.0 2024-05-27 11:44:05 -05:00