Skip to content

Conversation

@riccardodelutio
Copy link

Fixes #103.

This maintains the possibilty to store color in .ply files as uint8 (so that they can be loaded in Meshlab as proposed in dee37e4) and stores them as floats for other file extensions to avoid the ValueError.

Alternatively could be solved by changing the expected types in the different save_mesh_obj, save_mesh_... but would be a bit more effort :)

Screenshots of same mesh exported as ply and obj in Meshlab
Screenshot 2025-04-17 at 5 42 15 PM (2)
Screenshot 2025-04-17 at 5 42 10 PM (2)

@fwilliams fwilliams merged commit 2a482ff into fwilliams:master Apr 21, 2025
6 checks passed
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.

ValueError: Invalid dtype for argument 'v_colors'. Expected 'f' but got 'u' in _mesh_io.py using TrackedArrays

2 participants