Commit Graph

37842 Commits

Author SHA1 Message Date
Jookia
ca3bcfe6da Tests: Specify QtWidgets.QDialogButtonBox.Close explicitly
This seems needed for PySide6 on my system.
2024-06-21 11:10:16 -05:00
Jookia
df4a4591d2 Tests: Use assertEqual instead of assertEquals
This causes some test failures on my system at least.
2024-06-21 11:10:16 -05:00
PaddleStroke
3942d13cab Assembly: Remove unecessary import that was breaking ubuntu CI. 2024-06-21 10:18:19 -05:00
bgbsww
9b547bb90f Only adjust found element names 2024-06-20 16:10:39 -05:00
wmayer
2f8382ae59 MSVC: Fix compiler warnings
* avoid redefines in Assembly
* explicit cast from size_t to int
* remove unused variables
* avoid implicit cast from double to float
* in test cases replace EXPECT_FLOAT_EQ with EXPECT_DOUBLE_EQ or EXPECT_NEAR when doubles are used
2024-06-20 15:42:16 -05:00
wandererfan
d2be7f7d89 [TD]fix weld symbol position 2024-06-20 09:08:32 -04:00
Yorik van Havre
e3fa5ed679 BIM: Added square and rectangular profiles to pipes 2024-06-20 14:09:06 +02:00
Yorik van Havre
e17301b36c BIM: IFC: Export non-solids as Breps 2024-06-20 14:06:22 +02:00
Yorik van Havre
62d4f3ae0b BIM: Fix Copy tool stealing copy mode 2024-06-20 14:06:01 +02:00
Roy-043
2aa7296cc6 Draft: Add type check to Draft_Join
Add a type check for the selected objects. All must be Draft Wires.

Fixes #14727.
2024-06-20 14:05:21 +02:00
Lukas Schattenhofer
8a07f71c28 BIM: ArchComponent Only counts planar surfaces as vertical areas 2024-06-20 14:03:23 +02:00
Roy-043
1ba341194e Draft: Fix 2 issues to make Draft_Fillet handle arcs properly
Fixes #11435

Draft_Fillet could already handle arcs, provided they were not Draft_Arcs. The `_extract_edge` function in make_fillet.py had a strange logic, and could also return a wire which would result in problems later.

Another issue was that the `fillet` function in fillets.py did not handle the order of the edges correctly if one of the edges was an arc and the other a straight edge. The arch had to be selected first to prevent this error.
2024-06-20 14:00:42 +02:00
Roy-043
5a05739197 BIM: Fix base edge direction for Arch_Stairs
Fixes #14377

If the base edge of a stairs has a delta Z, the start point must have lowest Z. The `makeStraightStairsWithLanding` code fails otherwise.

Using `edge = Part.LineSegment().toShape()` is not the most efficient, but matches the pattern used elsewhere in the code.
2024-06-20 13:57:19 +02:00
Roy-043
8f1e415eac Draft: Fix onChanged in view_point.py
Fixes #14804

Added (also don't make sense for a point object):
* AngularDeflection
* DrawStyle
* Pattern
* PatternSize

Removed:
* DiffuseColor (property no longer exists)
* LineMaterial (already hidden by default)
2024-06-20 13:46:00 +02:00
wmayer
f6e67a009d Fix several compiler warnings
* -Wmaybe-uninitialized
* -Wunused-parameter
* -Wunused-variable
* -Wnonnull
* -Wstringop-truncation
* -Wstringop-overflow
2024-06-19 21:14:23 -05:00
wmayer
d1d2b730ef Gui: Move ToolBarAreaWidget to its own files
Since ToolBarAreaWidget is not a private class any more move its declaration and definition to their own source files.
2024-06-18 18:42:18 -05:00
Chris Hennes
e3509a37d1 Merge pull request #14773 from wwmayer/fix_fem
FEM: Fix linking errors & clean-up code
2024-06-18 18:41:01 -05:00
wmayer
57489af043 Fem: Clean-up code 2024-06-18 19:58:16 +02:00
wmayer
b7e0313591 Fem: Refactor DefineNodesCallback and DefineElementsCallback
Refactor the two methods to reduce code duplication.
2024-06-18 18:48:14 +02:00
wmayer
47a9ec8481 FEM: Fix linking errors
The static members of FemSetElementNodesObject are not defined in Fem but FemGui which the MSVC compiler doesn't like.
Furthermore it's a code smell to make them public and static and they are not even used by the class itself.
2024-06-18 18:14:10 +02:00
wmayer
6c0f42bb15 Fem: Fix copyright notices
Do not clutter copyright notices with changes made to a file. That's the task of the VCS
2024-06-18 18:01:22 +02:00
wmayer
1ccb74f141 PD: Fix crash in ViewProviderBody::unifyVisualProperty
Make sure that the view provider of a body feature provides the requested property
2024-06-18 10:41:41 -05:00
Chris Hennes
a36a60d29d Fem/Sketcher: Fix missing PreCompiled.h files 2024-06-18 08:05:32 -05:00
wandererfan
2ca9b6ef80 [TD]fix scene and tree selection sync 2024-06-17 19:31:56 -04:00
wmayer
27c61ef137 FEM: Fix several issues
* Move global (non-static) variables into anonymous namespace to avoid possible linking issues that may cause UB
* Fix compiler warnings
* Do not reinvent the wheel and use boost::to_upper_copy instead of own implementation
2024-06-17 19:57:04 +02:00
PaddleStroke
4a11652263 Assembly: InsertLink: Use doc.Label instead of doc.Name because of bug of doc.Name not updating when file is saved. 2024-06-17 11:33:28 -05:00
Chris Hennes
4454275146 TD: Use new Qt6.5 interface for setContent (#14543) 2024-06-17 11:33:15 -05:00
Ladislav Michl
025210845f Part: Fix AttachmentSupport when loading files from previous versions
Commit a8ae56e06a ("Part: Rename AttachExtension::Support property to
AttachmentSupport...") provided code to convert property name when loading
files saved with previous versions. Unfortunately 84ae6b9b7b
("Toponaming: bring in missing code fragments in Part") was based on
at the time obsolete code which did not contain before mentioned tweak,
so AttachmentSupport ended unassigned.

Fixes: 84ae6b9b7b ("Toponaming: bring in missing code fragments in Part")
2024-06-17 11:32:13 -05:00
bgbsww
2d22e7a21a Toponaming: Fix crash with invalid external geometry 2024-06-17 11:31:04 -05:00
xtemp09
3ab53aba3d Fix crash described in 14370 (issue comment)
The crash occurs because
PartDesignGui::TaskDressUpParameters::setSelection was invoked with
nullptr.
2024-06-17 11:27:07 -05:00
sliptonic
e755fc1a5a Machining model and materials (#14460)
* Machining model and materials

Adds a few machinability material model
and a couple materials.  There's a button in the job dialog
to assign a material.

The sanity report is updated to display the surface speed for assigned materials

* improving the machinability model

* Introduce MaterialConstant for the machinability model

This constant is required to calculate the actual specific cutting force
from the normalized value. It determines how the actaual value varies
when the actual chip thickness gets further away from the normalization
point.

* Rename some machinability properties

- SpecificCuttingForce becomes UnitCuttingForce to clearer differentiate
between normalized and actual specific cutting force. The term unit
cutting force is used less often in literature, but
NormalizedSpecificCuttingForce as property name is too long for my taste.
- MaterialConstant becomes ChipThicknessExponent, as "material constant"
is just too generic for our context. In literature, this constant is most
often just used as the symbol m_c.

---------

Co-authored-by: Jonas Bähr <jonas.baehr@web.de>
2024-06-17 11:25:55 -05:00
Roy-043
246aa8e1eb Draft: Draft_Hatch put focus on task panel
To make using Esc work properly the task panel should have the focus.
2024-06-17 11:25:01 -05:00
Roy-043
f2d3cf701a Draft: Draft_Split put focus on 3D view
To make using Esc work properly the 3D view should have the focus.
2024-06-17 11:24:36 -05:00
FEA-eng
4882a33d46 Update shape2dview.py 2024-06-17 11:22:18 -05:00
FEA-eng
f5ebafcebb Update DlgPreferences.ui 2024-06-17 11:21:26 -05:00
mosfet80
9db4eb6621 [MOD] JtReader.cpp clean (#14624)
* [MOD] JtReader.cpp clean

clean

* [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-06-17 11:20:34 -05:00
marioalexis
767bbb8436 Fem: Fix height of reference list widget in spring constraint task panel 2024-06-17 11:18:00 -05:00
Jolbas
0290a8759a Part: Handle zero scale in TopoShape::_makeTransform
With this commit the TopoShape::_makeTransform() use makeGTransform() if scale is zero to avoid crash. Fixes #14562
2024-06-17 11:17:27 -05:00
PaddleStroke
3fa0b68878 Assembly: Implement Bill Of Materials (#14198)
* Assembly: Implementation of BOM

* Assembly: BOM: make it possible for BOM to be made without an assembly.
2024-06-17 11:16:32 -05:00
Syres916
60a0e70882 [Part] Attachment Editor correct Python 2 reference 2024-06-17 11:14:01 -05:00
Chris Hennes
4c907d4318 Merge pull request #14681 from Roy-043/BIM-fix-extrusion-vector-scaling-for-IFC-export
BIM: fix extrusion vector scaling for IFC export
2024-06-17 11:12:30 -05:00
wmayer
41b1fdcb84 PD: Fixes issue #14598: FreeCAD crashes on Undo 2024-06-17 11:11:12 -05:00
Chris Hennes
1041e74e69 Merge pull request #11492 from mac-the-bike/erase-version-4
Version 4 of the Erasing Elements Code
2024-06-17 11:10:26 -05:00
Chris Hennes
c726198106 Merge branch 'main' into erase-version-4 2024-06-17 11:10:12 -05:00
Mihail Dumitrescu
77eedb84f8 Fix importing arcs and elliptical arcs as external geometry.
Fix importing elliptical arcs issue #8700.
Fix importing arcs into sketches in the case where they project as elliptical arcs.
Fix a discontinuity that happens when an external arc projects down to a segment. The segment end points should not jump around if the projection angle changes from 89.9 to 90 degrees.
When handling external geometry compare points for equality in a consistent way and remove some dead code.
2024-06-17 11:04:52 -05:00
Chris Hennes
99c30da736 Merge pull request #14388 from Ondsel-Development/core_rootObjects
Core: Add Gui::Document::getTreeRootObjects() Fixes #14373
2024-06-17 11:04:18 -05:00
PaddleStroke
4683fd97b5 QuickMeasure: fix large selection slow down. 2024-06-17 11:02:53 -05:00
Chris Hennes
a900d21c61 Merge pull request #14612 from Ondsel-Development/asm_dist_fix
Assembly: Fix bug of distance joint between point and circle
2024-06-17 11:01:29 -05:00
marioalexis
3d7d5ab785 Fem: Remove dependency of calculix solver classes on user parameters - fixes #13383 2024-06-17 10:58:57 -05:00
PaddleStroke
55dd8076cc Assembly: deleting a component deletes its joints. 2024-06-17 10:58:11 -05:00