Repository navigation
Add IO for NPZ files for Tensor-based TriangleMeshes - #6019
Conversation
|
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
|
Texture maps are now supported. Try this updated script: |
benjaminum
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @errissa)
cpp/open3d/t/io/TriangleMeshIO.cpp line 243 at r2 (raw file):
} if (mesh.HasTriangleAttr("texture_uvs")) { mesh_attributes["uvmap"] = mesh.GetTriangleAttr("texture_uvs");
Maybe we want to change this one.
I think the options we have are
triangle_texture_uvs (+valid identifier -multiple underscores)
triangle.texture_uvs (+like accessing an o3d attribute -can be saved to npz but not a valid identifier)
triangle__texture_uvs (+valid identifier -even more _)
More options after TriangleMesh->Mesh
face{_,.,__}texture_uvs
What do you think? @errissa
benjaminum
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @errissa)
cpp/open3d/t/io/TriangleMeshIO.cpp line 243 at r2 (raw file):
Previously, benjaminum (Benjamin Ummenhofer) wroteβ¦
Maybe we want to change this one.
I think the options we have are
triangle_texture_uvs(+valid identifier -multiple underscores)
triangle.texture_uvs(+like accessing an o3d attribute -can be saved to npz but not a valid identifier)
triangle__texture_uvs(+valid identifier -even more _)More options after TriangleMesh->Mesh
face{_,.,__}texture_uvsWhat do you think? @errissa
The mentioned options apply to all attributes
I thought we might want to change this one. It doesn't fit any other patterns we're using. I think the simplest is |
benjaminum
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion
* Add IO to/from NPZ files * Add texture maps and generic attriubtes to IO * Style fixes * Read/write material name and fix read with metallic texture * Add unit test for TriangleMesh NPZ IO * Apply style fixes * Rename uvmap to triangle_texture_uvs * Style fixes
The following script tests the basic functionality:
This change isβ