marian42 / mesh_to_sdf

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

fix the issue with "normal_sample_count" parameter in function "mesh_to_sdf" #47

Open Freeman449s opened 11 months ago

Freeman449s commented 11 months ago

Hi, I found that the normal_sample_count parameter in function mesh_to_sdf() is not used. Meanwhile, it seemed to me that you accidentally passed sample_point_count to SurfacePointCloud.get_sdf_in_batches(), which is far larger than normal_sample_count. This PR fixed this issue.