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

Does this algorithm support returning the value of the implicit function at any point? #266

Open
wly2014 opened this issue Jul 14, 2023 · 5 comments

Comments

@wly2014
Copy link

wly2014 commented Jul 14, 2023

The indicator function is mentioned in the approach of the paper Poisson Surface Reconstruction (2006). I want to get the parameters of the indicator function and see it as a signed distance function to calculate the distance at any 3D point.

Does this algorithm support returning the parameters of the indicator function?

Thank you very much.

@mkazhdan
Copy link
Owner

Unfortunately, the indicator function does not capture distance. In the idealized case, it's a binary function returning 0 or 1 depending on whether you are outside or inside the solid.

Methods like the Smoothed Signed Distance (SSD) function are more likely to be a long the lines of what you want since the returned implicit function gives 5he approximate distance from every point to the nearest point on the surface.

@wly2014
Copy link
Author

wly2014 commented Jul 14, 2023

Thanks a lot for your quick reply.

Methods like the Smoothed Signed Distance (SSD) function are more likely to be a long the lines of what you want since the returned implicit function gives 5he approximate distance from every point to the nearest point on the surface.

I find that this repository contains the SSD algorithm, but I still haven't found out how to get the returned implicit functions and their parameters in the SSD algorithm.

@mkazhdan
Copy link
Owner

I'm assuming 5hat by "parameters" you mean "values". Running with the "--grid" flag will output the values of the function, samples over a regular grid.

@wly2014
Copy link
Author

wly2014 commented Jul 15, 2023

Thanks for your advice.

I read the SSD paper carefully to understand this algorithm. And now I understand that this issue's name may be inaccurate, so I have updated it to Does this algorithm support returning the value of the implicit function at any point?.

I found that according to your suggestion, my needs can be solved like this: get the value of the implicit function at the grid points using the flag --grid (It is also possible to use --tree?), and then use the finite element discretization (trilinear interpolation in the SSD paper) to obtain the value of the implicit function at any coordinate within the corresponding cell.

@wly2014 wly2014 changed the title Does this algorithm support returning the parameters of the indicator function? Does this algorithm support returning the value of the implicit function at any point? Jul 15, 2023
@mkazhdan
Copy link
Owner

  1. You don't want to use the --tree flag. That exports the octre2 co3fficie8, which are harder to parse.
  2. The --grid options gives you the values, not the coefficients, so there is no need to re-sample.

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