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

Swap util.voxel_points dict for a lru_cache #26

Closed pbsds closed 3 years ago

pbsds commented 3 years ago

The lru cache has a maxsize which is neat, and removes noise from the function. This assumes the dict was not intended to be a public facing interface.