Commit Graph

27846 Commits

Author SHA1 Message Date
bgbsww
0d8631973e Toponaming/Part: Fix hashing, hasher mismatches, and adjust test results to match 2024-04-15 23:00:27 -05:00
wandererfan
301d928cba [TD]fix BrokenView dimensions 2024-04-15 19:59:22 -04:00
sliptonic
5988731660 Merge pull request #13394 from bgbsww/bgbsww-CAMTestsLeaveFile
Have grbl_post not write - file just like other postprocessors
2024-04-15 10:11:48 -06:00
David Carter
bc36c8dab5 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
PaddleStroke
0d6ac37353 Sketcher: Trim tool, hold click and move. Fixes #6152 2024-04-15 17:56:58 +02:00
Chris Hennes
ed3e1cf544 Merge pull request #13332 from wwmayer/fix_material_issues
Fix material issues
2024-04-15 10:33:29 -05:00
bgbsww
98880ca5df Merge branch 'main' into bgbsww-toponamingFeatureDressup10399 2024-04-14 18:16:03 -04:00
Chris Mayo
014cf9b458 Addon Manager: Remove mentions of GitPython
Not used since:
a1b2107ffd ("Addon Manager: Complete migration away from GitPython", 2024-01-27)
2024-04-14 17:13:55 -05:00
bgbsww
bd406dbcfd TopoNaming/PartDesign: Implement shapebinders 2024-04-14 17:13:14 -05:00
bgbsww
ccc03e8e60 Merge branch 'main' into bgbsww-toponamingFeatureDressup10399 2024-04-14 18:08:58 -04:00
Chris Hennes
305bba6db4 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
2aaa856661 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
4f8606fddb PD: Fixes #13446: Crash with hole in additive loft 2024-04-14 21:24:06 +02:00
bgbsww
459644be31 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
6aedddba5f 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
c6378ae51b Remove stray translations into their own locale folder 2024-04-14 08:51:25 -04:00
David Planella
58cd0f8353 Move all existing translation folders into locale subfolder 2024-04-14 08:51:25 -04:00
bgbsww
c5e481441d Toponaming/Part: Add Pad test, cleanup 2024-04-14 07:10:27 -04:00
bgbsww
9ebb23f234 Toponaming/Part: Initialize the hasher so that it operates 2024-04-13 22:41:57 -05:00
luzpaz
10d02c8a01 TD: Remove incorrect TODO
Closes #13410
2024-04-13 17:15:35 +02:00
wandererfan
2406c2798e [TD]handle odd projection cs in broken view 2024-04-12 13:41:46 -04:00
bgbsww
69f6f2230a Toponaming/Part: Enhanced testing for FeaturePrimitives 2024-04-12 10:32:05 -04:00
bgbsww
b7daa607af Toponaming/Part: Add Pad test, cleanup 2024-04-12 10:32:05 -04:00
Chris Hennes
e3d5fc367c Merge pull request #13354 from bgbsww/bgbsww-toponamingPD1dependencies
Toponaming/Part transfer in part design dependencies
2024-04-12 09:22:09 -05:00
wandererfan
343625fde5 [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
Zheng, Lei
01498d92d5 Bring in missing code 2024-04-11 18:20:26 -04:00
bgbsww
92e8a391c6 Toponaming/Part: Clean and add tests 2024-04-11 11:30:04 -04:00
Zheng, Lei
5a0ac5cafd TopoShape/Part: Bring in FeatureDressup 2024-04-11 10:22:11 -04:00
bgbsww
7ce98fde1a Have grbl_post not write - file like other posts 2024-04-10 16:17:47 -04:00
bgbsww
239c3e6f78 Toponaming/Part: Fix review items 2024-04-10 12:14:01 -04:00
wmayer
12ef38e66f 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
942ebd58f0 Toponaming/Part: Add deprecation comments, clean up code 2024-04-09 21:17:08 -04:00
Zheng, Lei
231a638fc7 TopoShape/Part: Bring in PartDesign dependencies 2024-04-09 21:17:08 -04:00
bgbsww
caa126eec0 Upgrade Toponaming tests 2024-04-09 16:19:07 -05:00
wmayer
e87180b245 Part: fix import of STEP files with colors per face 2024-04-09 22:15:51 +02:00
wmayer
9d4757b301 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
5d451b1486 PD: fix shape appearance of datum features, shape binder and sub-shape binder 2024-04-09 22:15:51 +02:00
wmayer
15dcd1e9be 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
262a218b6b Part: fix Part_RefineShape and Part_Section 2024-04-09 22:15:51 +02:00
wmayer
4aa140d066 Mod: code cleanup 2024-04-09 22:15:51 +02:00
wmayer
2d1153d72e Mod: Adjust parent class for Python wrappers 2024-04-09 22:15:51 +02:00
wmayer
92b1e77744 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
f84224bb43 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
2c593b67b4 Fem: Fix display modes order - fixes #13326 (#13358) 2024-04-08 18:15:12 +02:00
FEA-eng
b4c37e4d97 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
725d70ff55 FEM: add tests directory for function tests; add tests for parse_diff 2024-04-08 18:06:17 +02:00
lyphrowny
4e54d436fc FEM: add floating point comparison for tests 2024-04-08 18:06:17 +02:00
Yorik van Havre
3f0bd5501e 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
f87782d860 [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
lyphrowny
d2e355c836 FEM: migrate calculix tests to ccxtools tests 2024-04-08 18:02:33 +02:00