NVIDIAGameWorks / kaolin

A PyTorch Library for Accelerating 3D Deep Learning Research
Apache License 2.0
4.48k stars 559 forks source link

Mesh to SDF conversion in version 0.12.0 #671

Open deepak-1530 opened 1 year ago

deepak-1530 commented 1 year ago

Is there a way to generate signed distance fields from triangle meshes ? It seems there was a way to do it in version 0.1.0 (https://kaolin.readthedocs.io/en/v0.1/notes/conversions_tutorial.html#trianglemesh-to-signed-distance-function-sdf)

Caenorst commented 1 year ago

Hi @deepak-1530 , you can combine point to mesh distance with check sign to compute the SDF

deepak-1530 commented 1 year ago

Thanks for your response. Can you share a code snippet to show how it's done?

jjj12zcs commented 1 year ago

Please ask if you have solved this problem now, and if so, can you tell me how you solved it