gumyr / build123d

A python CAD programming library
Apache License 2.0
386 stars 72 forks source link

Fix 3MF color export and partial support for color import #594

Closed jdegenstein closed 3 months ago

jdegenstein commented 3 months ago

This PR reworks the current 3MF color export and color import to use material groups rather than the current approach of vertex specific colors. This PR allows for one to export objects from build123d with a color to a 3MF and then re-import that 3MF file with color preserved.

Known Limitations:

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.98%. Comparing base (e4ce1d8) to head (1c3f895).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #594 +/- ## ======================================= Coverage 94.98% 94.98% ======================================= Files 25 25 Lines 7999 7984 -15 ======================================= - Hits 7598 7584 -14 + Misses 401 400 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.