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

read_obj: file not found #12

Closed
Leerw opened this issue Jan 14, 2020 · 5 comments
Closed

read_obj: file not found #12

Leerw opened this issue Jan 14, 2020 · 5 comments

Comments

@Leerw
Copy link

Leerw commented Jan 14, 2020

Thanks for your great work!

Warning: readOBJ() ignored non-comment line 155880:
  o mesh1.002_mesh1-geometry
Failed to cast FTC to matrix: min (0) != max (3)
Traceback (most recent call last):
  File "prepare_complete.py", line 49, in <module>
    pcd = sampling_from_mesh(mesh_path, pcd_path, num_points, sample_method)
  File "../sampling/sample.py", line 62, in sampling_from_mesh
    v, f, n = pcu.read_obj(mesh)
ValueError: File '/model.obj' not found.

but the model.obj does exists! what happened?

@fwilliams
Copy link
Owner

The file /model.obj probably doesn't exist. Did you mean ./model.obj?

@fwilliams
Copy link
Owner

Did this fix the issue?

@Leerw
Copy link
Author

Leerw commented Jan 15, 2020

sorry, I have not fix this issue, the path is correct, but I delete some prefix personal directories to make it looks clean. I have tried to use the readOBJ in libigl, it worked for me. But why readOBJ in pcu does not work?

@fwilliams
Copy link
Owner

read_obj in PCU just calls libIGL under the hood and the Python binding should be identical. Can you paste the code you ran and the exact error? Also what OS and version of Python are you using?

@fwilliams
Copy link
Owner

I've completely rewritten the Mesh IO functions in point-cloud-utils. They are not much more powerful and flexible and shouldn't suffer from the reported bug.

See here for documentation on loading meshes and see here for documentation on saving meshes.

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

2 participants