Commit Graph

37100 Commits

Author SHA1 Message Date
bgbsww
2eb4689996 Toponaming/Part: Add Pad test, cleanup 2024-04-14 07:10:27 -04:00
Zheng, Lei
2377175ab1 Toponaming/Part: Transfer in python ElementMapVersion 2024-04-14 07:10:27 -04:00
bgbsww
6291078939 Toponaming/Part: Initialize the hasher so that it operates 2024-04-13 22:41:57 -05:00
Roy-043
88b0ec5127 Gui: spelling: freezed -> frozen 2024-04-13 17:16:22 +02:00
luzpaz
a3d72167b6 TD: Remove incorrect TODO
Closes #13410
2024-04-13 17:15:35 +02:00
wmayer
b02ec8dc67 Gui: fix crash in PythonCommand::isChecked()
This very likely fixes the crash reported at https://forum.freecad.org/viewtopic.php?t=86874
2024-04-13 14:58:21 +02:00
wmayer
f1c7d388dd Tests: add Parameter tests 2024-04-12 23:37:56 +02:00
wandererfan
74556bced8 [TD]handle odd projection cs in broken view 2024-04-12 13:41:46 -04:00
bgbsww
11b4d218bd Toponaming/Part: Enhanced testing for FeaturePrimitives 2024-04-12 10:32:05 -04:00
bgbsww
b471435bc5 Toponaming/Part: Add Pad test, cleanup 2024-04-12 10:32:05 -04:00
Zheng, Lei
40c39ad897 Toponaming/Part: Transfer in python ElementMapVersion 2024-04-12 10:32:05 -04:00
Chris Hennes
5ef1b96a9d Merge pull request #13354 from bgbsww/bgbsww-toponamingPD1dependencies
Toponaming/Part transfer in part design dependencies
2024-04-12 09:22:09 -05:00
Chris Hennes
590aa2e7ea GitHub: Fix YAML format for labeler@v5 2024-04-12 09:00:32 -05:00
wandererfan
cea3370a24 [TD]fix regression of svg hatch during export
- last worked in v0.20
- svg hatch tile field is not cropped on export to svg.  svg tiles are
  replaced by pixmap tiles for export.
2024-04-12 09:00:06 -04:00
Max Wilfinger
afaf0ce8ea Add 'Mesh' option to issue template 2024-04-12 08:00:43 +02:00
Zheng, Lei
6c6dce236d Bring in missing code 2024-04-11 18:20:26 -04:00
bgbsww
5f2c412cfa Toponaming/Part: Clean and add tests 2024-04-11 11:30:04 -04:00
Zheng, Lei
7bc2b3688a TopoShape/Part: Bring in FeatureDressup 2024-04-11 10:22:11 -04:00
Bas Ruigrok
9991c430d2 Fix compiler warning 2024-04-10 22:31:35 +02:00
bgbsww
19794498bb Have grbl_post not write - file like other posts 2024-04-10 16:17:47 -04:00
mosfet80
c0d8de527a Update labeler.yml
fix deprecation warning
updated action/labeler to v5
2024-04-10 19:18:08 +02:00
mos
3b5bfd5af4 fix deprecation warning
update
actions/cache/save to v4
switch to node 20: fix deprecation warning

actions/cache/restore to v4

fix deprecation wawing
2024-04-10 19:16:45 +02:00
bgbsww
bd307d7cac Toponaming/Part: Fix review items 2024-04-10 12:14:01 -04:00
wmayer
74f614a93d Fix handling of transparency / Restore colour per face
The Materials module does a conversion from float to double when saving the transparency and again a conversion from double to float to double
when restoring it. This causes a considerable loss of accuracy so that the representation in percent leads to different numbers.

Using consistently some helper functions to do a proper conversion from float to long and back fixes the problem.

The new property ShapeAppearance is a PropertyMaterialList and always read after the DiffuseColor property when restoring a document.
Thus, the  method onChanged() doesn't override DiffuseColor when restoring a document. Additionally, the method finishRestoring() is re-implemented
to set the colours per face in case DiffuseColor has defined multiple colors.
2024-04-10 13:32:58 +02:00
bgbsww
c9d8bdf13d Toponaming/Part: Add deprecation comments, clean up code 2024-04-09 21:17:08 -04:00
Zheng, Lei
82c3e107d7 TopoShape/Part: Bring in PartDesign dependencies 2024-04-09 21:17:08 -04:00
bgbsww
83ea7e4355 Upgrade Toponaming tests 2024-04-09 16:19:07 -05:00
wmayer
0a5a1a5c32 Part: fix import of STEP files with colors per face 2024-04-09 22:15:51 +02:00
wmayer
af317be718 Core: avoid conversion from float to double or vice-versa
When synchronizing the Transparency property with the transparency value of the ShapeAppearance property then do not convert between float and
double as otherwise some strange rounding issues can occur.

Example: Set the Transparency property of an object to 35 in the Property Editor. After leaving the editor the value may switch to 34.
2024-04-09 22:15:51 +02:00
wmayer
8cba167241 Part: fix some further regressions:
* Correctly load a file if colors are set per face
* Result of boolean operation is correctly colored if source objects have different colors
* Result of compound is correctly colored if source objects have different colors
2024-04-09 22:15:51 +02:00
wmayer
780481f6ed PD: fix shape appearance of datum features, shape binder and sub-shape binder 2024-04-09 22:15:51 +02:00
wmayer
b7bc6ad1e6 Gui: add security checks to view provider extensions because they can be accessed if a document objects is not yet attached 2024-04-09 22:15:51 +02:00
wmayer
9b7a7b9756 Part: fix Part_RefineShape and Part_Section 2024-04-09 22:15:51 +02:00
wmayer
36d043cbbd Mod: code cleanup 2024-04-09 22:15:51 +02:00
wmayer
9c368d8916 Gui: fix Std_RandomColor 2024-04-09 22:15:51 +02:00
wmayer
4975da5a28 Mod: Adjust parent class for Python wrappers 2024-04-09 22:15:51 +02:00
wmayer
a19afb0f7d Gui: fix ViewProviderGeometryObject
* fix several linter warnings
* remove code that cannot be executed: inside the constructor it cannot ever happen that getObject()
  returns a valid object
* in ViewProviderGeometryObject::handleChangedPropertyName call the method of the direct base class
  as otherwise this may break the mechanism in the future
* Shape is a property of an extension module -> move its handling to ViewProviderPartExt
2024-04-09 22:15:51 +02:00
wmayer
5853314833 App: Add PropertyMaterialList::resizeByOneIfNeeded to avoid code duplication 2024-04-09 22:15:51 +02:00
wmayer
c161871689 App: fix several linter warnings 2024-04-09 22:15:51 +02:00
wmayer
8f649a8aa4 App: fix PropertyMaterial::Save to create valid XML output 2024-04-09 22:15:51 +02:00
wmayer
4fe1192e51 App: refactor MaterialPy to avoid code duplication 2024-04-09 22:15:51 +02:00
wmayer
9a16a7108f App: Fix linter warnings
* fix readability-uppercase-literal-suffix
* fix readability-avoid-const-params-in-decls
* fix cppcoreguidelines-special-member-functions
* fix cppcoreguidelines-pro-type-member-init
* fix modernize-use-equals-default
2024-04-09 22:15:50 +02:00
wmayer
3a34fe080a Mod: Show regressions in shape colouring
This PR demonstrates the known regressions of the recently merged material branch:
* Changing the transparency after setting color per face will reset them
* The result of boolean operations or compound doesn't inherit the colour of its input objects
* If colour is set per face to a boolean operaton object then saving and restoring the file causes weird rendering behaviour
  because material binding is set to PER_PART but only a single colour is defined
* If a shape inside a part container has set colour per face then saving and restoring as STEP file causes weird rendering
behaviour for the same reason
* Shape binder or datum objects don't show the correct default shape colour
2024-04-09 22:13:42 +02:00
marioalexis84
cc96f2718e Fem: Fix display modes order - fixes #13326 (#13358) 2024-04-08 18:15:12 +02:00
sliptonic
afb4d6a344 Merge pull request #13330 from Rexbas/fix-navigation-with-overlays
Gui: Fix navigation with overlays
2024-04-08 11:09:10 -05:00
FEA-eng
2616a3d792 Add uncoupled temp-disp and heat transfer CalculiX FEM analysis types (#13296)
* FEM: Update solver.py

* FEM: Update write_step_equation.py

* FEM: fix temperature only analysis

---------

Co-authored-by: lyphrowny <strukov.as@edu.spbstu.ru>
2024-04-08 18:08:16 +02:00
lyphrowny
2fffcd1e8a FEM: add tests directory for function tests; add tests for parse_diff 2024-04-08 18:06:17 +02:00
lyphrowny
f978e4b72b FEM: add floating point comparison for tests 2024-04-08 18:06:17 +02:00
Yorik van Havre
56ebe6a7b8 Arch: Upgraded reference tool
* Fixed translations
* Reference objects can now use whole file contents instead of having to choose a part
* Support for DXF files
* Support for IFC files (if NativeIFC is available)
* General code cleanup
2024-04-08 18:04:37 +02:00
paullee
f4df8d0c10 [ArchWall] Fix regression make block from DraftWire
See FC Forum Discussion
- https://forum.freecad.org/viewtopic.php?t=86365
2024-04-08 12:03:40 -04:00