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

surface_point_cloud: Add option to set unit sphere radius #28

Open pbsds opened 3 years ago

pbsds commented 3 years ago

This PR adds the option to configure a custom radius for the volumetric samples in the SurfacePointCloud.sample_sdf_near_surface procedure. In addition, it also makes the ratio of sphere and near-surface points configurable.

How does sign_method == 'depth' deal with points behind the cameras? I assume they get "negative" depths? If they instead get clipped then this PR will need more work.