Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create the df data of other resolution? And a question about the content of df data. #34

Open
TrepangCat opened this issue Sep 13, 2021 · 1 comment

Comments

@TrepangCat
Copy link

I hope to create the df data of other resolutions, e.g. 64. But I do not find any code about this. Could you share the corresponding codes?

And here is a detail about data, I can't understand. It seems that there is no minus value in df data. So what do you save in voxel grids? I used to think they are signed distance function values.

@ztzhang
Copy link
Collaborator

ztzhang commented Dec 2, 2021

We use distance function instead of signed distance function, since most of the meshes are not watertight.
I'm not sure if I can trace down the exact code for df calculation, but this process is quite simple: for each grid location, we find the nearest triangles on the mesh and use point to triangle distance as the value of that grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants