Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andreabosisio opened this issue Feb 19, 2025 · 0 comments

Comments

@andreabosisio
Copy link

I get ValueError: Invalid dtype for argument 'v_colors'. Expected 'f' but got 'u' when calling pcu.save_mesh_vf, specifically here

save_mesh_internal(filename,

with both v and f of

def save_mesh_vf(filename, v, f, dtype=np.float32):
being a trimesh.caching.TrackedArray (Subclass of numpy.ndarray) of shapes (n_v, 3) and (n_f, 3) and dtypes dtype("float64") and dtype("int64"), respectively.

Do you have any idea what might be causing this?

I'm using point-cloud-utils 0.31.0 and trimesh 4.6.2.

Thank you for helping

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

No branches or pull requests

1 participant