Skip to content

Conversation

@mikedh
Copy link
Owner

@mikedh mikedh commented Sep 26, 2025

mikedh and others added 27 commits September 26, 2025 15:41
Currently the name of PBRMaterial is lost when calling to_simple() which causes issues when exporting meshes with named materials in obj format.
Hi @mikedh!

Currently the name of PBRMaterial is lost when calling to_simple() which
causes issues when exporting meshes with named materials in obj format.
More specifically, the baseColorTexture will always be saved as an image
with name ```material_0.png```, and I couldn't find any workaround to
override this name; this means if saving two such meshes in the same
directory, only the last texture image would be available. I provided
the simple fix to pass the name, but please let me know if there is an
alternative.

Thanks for the amazing library!
This PR adds a lot of missing typing to methods and properties in the
`Trimesh` class. Additionally, this PR updates a bunch of docstrings
that were missing information.
- Change 3mf file used on round trip test to cover the case
- Fixed by getting model id of the geometry instead of the node, if
available
@mikedh mikedh merged commit 76b6dd1 into main Oct 22, 2025
10 of 11 checks passed
@mikedh mikedh deleted the feat/units branch October 22, 2025 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants