Commit Graph

36869 Commits

Author SHA1 Message Date
wmayer
6c9b368b99 Data: Consistent data path
During the build process the example files are copied to the hardcoded path 'data/examples' while for the installed files
'/examples' is used. On Linux systems the value of the CMake variable is 'share' so that there is
an inconsistency between compiled and installed version.
2024-04-15 11:10:58 -05:00
David Carter
f950a0c086 Material: Compatibility with older FCMat files
Provides compatibility loading older files outside the context of
a library.

Older material files were loaded by specifying a path. The new
material system used the path to associated the material with a
library, which may not be appropriate for legacy files. This change
allows the use of materials outside of a library.

Additionally, legacy files often have name/value pairs not part of the
standard list of properties. Since these were unable to be mapped to
a model property they were ignored. Materials now maintain a legacy
map to hold properties not associated with a property model. These
properties are considered transient and will not be saved. It is not
intended for this feature to be used as a generic container for
properties not mapped to an appropriate model.

Fixes #13302
2024-04-15 18:05:18 +02:00
Chris Hennes
0056038ff4 Toponaming/Base: Add ASCII stream output class (#13209)
* Toponaming/Base: Add ASCII stream output class

* Remove the ref from std::string

* Update based on review comments
2024-04-15 17:58:11 +02:00
PaddleStroke
4b968a607d Sketcher: Trim tool, hold click and move. Fixes #6152 2024-04-15 17:56:58 +02:00
Adrian Insaurralde Avalos
aabb6124b1 Move macos CI to arm 2024-04-15 10:46:01 -05:00
Patryk Skowroński
233a61e54e New integration with 3Dconnexion devices (#12929)
* New integration with 3Dconnexion devices

* CMake build option hidden for Mac

* Minor fixes, to be squashed to previous commit

* cmake: fix indent and case; to be squashed

* Corrected name case

---------

Co-authored-by: Patryk Skowroński <pskowronski@3dconnexion.com>
Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
Co-authored-by: Ladislav Michl <ladis@linux-mips.org>
2024-04-15 10:43:45 -05:00
Chris Hennes
87839c9f8b Merge pull request #13332 from wwmayer/fix_material_issues
Fix material issues
2024-04-15 10:33:29 -05:00
Chris Hennes
cd1f624afb Merge pull request #13411 from bgbsww/bgbsww-toponamingFeatureDressup10399
Toponaming/Part:  feature dressup and transform
2024-04-14 17:22:00 -05:00
bgbsww
c988c4b65e Merge branch 'main' into bgbsww-toponamingFeatureDressup10399 2024-04-14 18:16:03 -04:00
Chris Mayo
6af79ebe00 Addon Manager: Remove mentions of GitPython
Not used since:
760aaf4afe ("Addon Manager: Complete migration away from GitPython", 2024-01-27)
2024-04-14 17:13:55 -05:00
bgbsww
3d1f6199c4 TopoNaming/PartDesign: Implement shapebinders 2024-04-14 17:13:14 -05:00
bgbsww
2e859100a9 Merge branch 'main' into bgbsww-toponamingFeatureDressup10399 2024-04-14 18:08:58 -04:00
Chris Hennes
d1c5de6e06 Merge pull request #13401 from bgbsww/bgbsww-toponamingPD6FeaturePrimitive
Toponaming/Part:  Enhance testing for  primitive features
2024-04-14 16:21:38 -05:00
Chris Hennes
f94a045598 Merge pull request #13387 from bgbsww/bgbsww-toponamingPD5FeaturePad
Toponaming/Part Transfer more python ElementMapVersion and add feature pad testing
2024-04-14 16:06:40 -05:00
wmayer
e05e17c954 PD: Fixes #13446: Crash with hole in additive loft 2024-04-14 21:24:06 +02:00
wmayer
9fb2931781 Base: fix some linter warnings 2024-04-14 21:22:08 +02:00
bgbsww
a88e7baff5 TopoShape/Part: Bug fixes; pass Hasher parms, OCCT 7.8 compatibility, ElementMaps correct item count 2024-04-14 13:56:07 -04:00
David Planella
34238a0b3d Renamed locale folders according to IETF subtags, added README file with instructions on how to add a new translation 2024-04-14 08:51:25 -04:00
David Planella
830c5e7943 Remove stray translations into their own locale folder 2024-04-14 08:51:25 -04:00
David Planella
9a592a64af Move all existing translation folders into locale subfolder 2024-04-14 08:51:25 -04:00
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
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