Commit Graph

26730 Commits

Author SHA1 Message Date
mosfet80
eda7e134ea casts clean (#11548)
* remove unecessary casts

clean unused code

revert  example py code

* [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>
2023-12-04 10:51:36 -06:00
Chris Hennes
6c3e002be5 Merge pull request #11507 from Ondsel-Development/constr_primitives
[Sketcher] Improve angle & radius constraint rendering
2023-12-04 10:48:20 -06:00
Chris Hennes
fe0f96ca44 Merge pull request #11494 from Ondsel-Development/Coincident
[Sketcher] Introduce an optional unified version of coincident and pointOnObject
2023-12-04 10:46:21 -06:00
Max Wilfinger
a1f0674020 Renaming FEM mesh region to mesh refinement (only Users POV / tooltips) (#11489)
* project to document on information, merge, util

* rename MehRegion to MeshRefinement (tooltip/user PoV only)
2023-12-04 10:41:04 -06:00
Ajinkya Dahale
f66261b598 [PD] Set up-to-face when opening revolution/grove task box 2023-12-04 13:40:31 -03:00
Ajinkya Dahale
8023c0595d [PD] Fix wrong mode options when opening existing revolution
Only the "Dimension" options showed regardless of what mode was selected.
2023-12-04 13:40:31 -03:00
Abdullah Tahiri
779af0aa2f Sketcher: Solver - Remove outdated request for reporting 2023-12-04 16:32:23 +01:00
Roy-043
12211aacbb Draft: menu texts to sentence case 2023-12-04 10:44:59 +01:00
Syres916
fc38f35220 [Start] Fix regression from d565796f96
for runtime error see https://github.com/FreeCAD/FreeCAD/pull/11513#issuecomment-1837300296
2023-12-04 10:43:37 +01:00
wandererfan
9cb4745f38 [TD]handle loose geometry via HLR 2023-12-03 08:55:59 -05:00
Rexbas
a3aeed8c03 Part: Use vector.data() to get data pointer 2023-12-03 12:35:15 +01:00
Rexbas
2d4409f710 Part: Use materialIndex.setValuesPointer() only if the new values are different 2023-12-03 12:35:15 +01:00
Roy-043
6ea942afc1 Merge pull request #11610 from Roy-043/Draft-update-Draft_ApplyStyle
Draft: update Draft_ApplyStyle
2023-12-03 11:25:27 +01:00
wandererfan
dc063eabec [TD]fix fix hidden line style 2023-12-02 13:55:08 -05:00
wandererfan
9e7f21fcb2 [TD]fix line numbering in preferences
- resolve conflict between comboBox currentIndex [0,n] and
  line numbering [1, n]
2023-12-02 13:55:08 -05:00
pavltom
4ea5c2b611 [TechDraw] Use OCC to compute intersections - drop limits from hint 2023-12-02 13:54:37 -05:00
pavltom
b26b83dfee [TechDraw] Use OCC to compute intersections of any types of curves 2023-12-02 13:54:37 -05:00
wmayer
1245c3f3b2 Python: deprecated aliases have been removed in Py 3.12 2023-12-02 14:45:55 +01:00
Roy-043
b4c3a0d963 Draft: update Draft_ApplyStyle
The command now applies all style properties from `utils.get_default_annotation_style()` and `utils.get_default_shape_style()`.

Additionally: minor improvements to gui_setstyle.py.
2023-12-02 13:11:08 +01:00
wandererfan
8f17842974 [TD]fix errors in MS CI
- apparently the "or" alternative to "||" is not supported
  by MS but is part of the c++ specification:
  https://en.cppreference.com/w/cpp/language/operator_alternative

- also missing TechDrawExport
2023-12-01 11:27:29 -05:00
wandererfan
762e1b53ff [TD]Standard Line Styles - Gui components 2023-12-01 11:27:29 -05:00
wandererfan
b64fd9ac03 [TD]Standard Line Styles - data files 2023-12-01 11:27:29 -05:00
wandererfan
8a7e8effb3 [TD]Standard Line Styles - App components 2023-12-01 11:27:29 -05:00
bgbsww
a4db18af56 Default freenet to true for sweep to fix rendering bug 2023-12-01 14:02:49 +01:00
Roy-043
92d69c9641 Draft: update Draft_SetStyle
* Added handling of DefaultShapeVertexColor, DefaultShapePointSize, DefaultAnnoLineColor and DefaultAnnoLineWidth preferences.
* Rearranged the task panel.

Additionally the DefaultDrawStyle and DefaultDisplayMode preferences are now applied by format_object in gui_utils.py.
2023-11-30 21:19:48 +01:00
luzpaz
faef0c6f27 Fix various typos 2023-11-30 14:58:06 +01:00
wmayer
d529193f75 Part: use BRepTools::OuterWire to get outer wire of a face
In the past ShapeAnalysis::OuterWire() was used that may fail to determine the correct outer wire.

Forum thread: https://forum.freecad.org/viewtopic.php?t=83122
2023-11-30 12:41:49 +01:00
Roy-043
9b19b66d90 Draft: implement DefaultAnnoLineWidth and DefaultAnnoLineColor prefs
The format_object function in gui_utils.py still requires some work (in connection with the Draft_SetStyle command). This will be done later.
2023-11-30 09:45:19 +01:00
Roy-043
4755086911 Draft: Revised preference ui files
* Removed DefaultAnnoDisplayMode. This will become a fine-tuning preference.
* Removed HatchPatternResolution as it was not used.
* Added DefaultAnnoLineColor and DefaultAnnoLineWidth. These will be implemented in other parts of the Draft code in later PRs.
2023-11-30 09:44:05 +01:00
Roy-043
6a2da1e005 Draft: use param observer to update tray 2023-11-30 09:41:45 +01:00
bgbsww
94ca51b779 PartDesign: Fix #9377 - issue with accuracy in AdditiveHelix (#11312)
* Correct precision issue in PartDesign::AdditiveHelix

* Simplify getting the end wires

* Remove extraneous loop per @FlachyJoe

* Switch to using mkPS.Shape per @FlachyJoe

* Incorporate guarded efficiency improvement
2023-11-29 21:26:00 -03:00
Roy-043
6c015072eb Draft: implement DefaultAnnoLineWidth and DefaultAnnoLineColor prefs
The format_object function in gui_utils.py still requires some work (in connection with the Draft_SetStyle command). This will be done later.
2023-11-29 23:06:17 +01:00
Roy-043
08308ada8a Draft: Revised preference ui files
* Removed DefaultAnnoDisplayMode. This will become a fine-tuning preference.
* Removed HatchPatternResolution as it was not used.
* Added DefaultAnnoLineColor and DefaultAnnoLineWidth. These will be implemented in other parts of the Draft code in later PRs.
2023-11-29 23:06:17 +01:00
bgbsww
b1a96bde5f Don't apply the transformations recursively, just make sure the right one is applied to the top subobject (#11539) 2023-11-29 17:15:59 -03:00
Roy-043
b10e4ab809 Draft: Revised preference ui files
* Removed DefaultAnnoDisplayMode. This will become a fine-tuning preference.
* Removed HatchPatternResolution as it was not used.
* Added DefaultAnnoLineColor and DefaultAnnoLineWidth. These will be implemented in other parts of the Draft code in later PRs.
2023-11-29 15:05:16 +01:00
wmayer
559a746507 MSYS: fix build failure with MinGW & gcc 2023-11-28 16:16:34 +01:00
Paddle
921a8f3040 Add a setting to disable auto horizontal/vertical. 2023-11-28 09:45:35 +01:00
Roy-043
096f77d28c Draft: use param observer to update tray 2023-11-27 23:56:00 +01:00
Paddle
5839848f21 Introduce CmdSketcherConstrainCoincidentUnified. This is a unified version of coincident + pointOnObject.
This is disabled by default. Nothing changes by default.
2023-11-27 21:14:33 +01:00
Yorik van Havre
3ade39ccf1 Translations (#11551)
* Updated ts files

* merged crowdin 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>
2023-11-27 11:29:38 -06:00
sliptonic
594cfb924b Merge pull request #11549 from wwmayer/sketcher_security_checks
Sketcher: add security checks to avoid possible undefined behaviour
2023-11-27 10:28:14 -07:00
mwganson
6ea4a743b1 [Part::Mirroring] Add support for mirror plane reference object 2023-11-27 11:17:48 -06:00
Yorik van Havre
d565796f96 Start: Allow dynamic translation of start page (#11513)
* Allow dynamic translation of start page - fixes #9996
* [pre-commit.ci] auto fixes from pre-commit.com hooks
2023-11-27 11:06:27 -06:00
Paddle
70d81f4b51 Sketcher : remove deleteAllConstraints from toolbar. 2023-11-27 11:00:50 -06:00
bgbsww
08d84fce15 Add readonly length properties to part helix and spiral (#11406)
* Add readonly length properties to part helix and spiral

* Comment to explain non obvious Mass as Length
2023-11-27 10:52:23 -06:00
bgbsww
d472927bba Correct PartDesign Helix feature negative angles (#11399)
* Correct PartDesign Helix feature negative angles

* Whitespace
2023-11-27 10:51:12 -06:00
bgbsww
185e58a219 Use placement only on new objects 2023-11-27 17:46:45 +01:00
bgbsww
18e117b184 Fix variable name, clean 2023-11-27 17:46:45 +01:00
bgbsww
2643fd3334 Take Placement into account when applying boolean 2023-11-27 17:46:45 +01:00
Chris Hennes
fa65438556 Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive-

* App: Fixes for MSVC permissive-

* Gui: Fixes for MSVC permissive-

* Main: Fixes for MSVC permissive-

* Fem: Fixes for MSVC permissive-

* Material: Fixes for MSVC permissive-

* Part: Fixes for MSVC permissive-

* Mesh: Fixes for MSVC permissive-

* Points: Fixes for MSVC permissive-

* Robot: Fixes for MSVC permissive-

* TechDraw: Fixes for MSVC permissive-

* Path: Fixes for MSVC permissive-

* Core; Changes per review comments

* TD: Revision from wandererfan

* [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>
2023-11-27 17:37:29 +01:00