marian42 / mesh_to_sdf

Calculate signed distance fields for arbitrary meshes
https://pypi.org/project/mesh-to-sdf/
MIT License
1.02k stars 108 forks source link

can't load ycb objects... #37

Open jeffsonyu opened 2 years ago

jeffsonyu commented 2 years ago

Hello! I'm currently using your demo code to scan and load the object of ycbhttp://ycb-benchmarks.s3-website-us-east-1.amazonaws.com/. Unfortunately it came up with one mistake in the get_surface_point_cloud line in the demo, and the mistake is as follows.

File "C:\Users\87251\anaconda3\envs\sdf\lib\site-packages\pyrender\camera.py", line 187, in get_projection_matrix: aspect_ratio = float(width) / float(height) ZeroDivisionError: float division by zero

What is this problem? I check the obj file is ok, which contains normal vertices and faces as chair.obj as you provided. Perhaps the only different is that mines contains material information provided with .mtl files. Could you help me with this? Really appreciate it.