kaolin icon indicating copy to clipboard operation
kaolin copied to clipboard

The latest version doesn't have the function "point cloud to SDF"

Open yang-si-hang opened this issue 2 years ago • 2 comments

I want to generate SDF (Signed Distance Function) from a point cloud. I can't find this function in the latest version, while version 0.1 has the function sdf_ = kal.conversions.pointcloud_to_trianglemesh(points).

I wonder how to generate the SDF with the latest version.

yang-si-hang avatar Nov 08 '22 14:11 yang-si-hang

Hi @yang-si-hang , thank you for your interest in Kaolin.

You are asking to generate an SDF from a point cloud but the function you quoting here is a point cloud to trianglemesh function, can you specify what do you want?

If you look at the underlying code in https://github.com/NVIDIAGameWorks/kaolin/blob/v0.1/kaolin/conversions/pointcloudconversions.py#L68-L77 you will find that the functions rely on a voxelgrid conversion at intermediate step, which may or may not something that you want in your conversion. It should be pretty easy to reproduce in the latest version.

Caenorst avatar Nov 08 '22 16:11 Caenorst

Thanks for your reply! I'm new at computer graphics. I will try your suggestion.

yang-si-hang avatar Nov 11 '22 02:11 yang-si-hang