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 does work the Point <Real, Dim> struct #285

Open
ClaudioChiariello opened this issue Nov 22, 2023 · 4 comments
Open

How does work the Point <Real, Dim> struct #285

ClaudioChiariello opened this issue Nov 22, 2023 · 4 comments

Comments

@ClaudioChiariello
Copy link

ClaudioChiariello commented Nov 22, 2023

hello professor, I am trying to fill the point of the point cloud from the code, instead to use the cmd line input through the --in.

As far as I understand, the core of the code inside the implicit class, which solves the Poisson equation given the point cloud in input.

During this function, somewhere is called the function base_read() in which I should tell that the constant term (that in your paper is expressed as V) is my input point cloud.

To do this, in the base_read function i should fill their arguments, which are Position <Real, Dim> p and Normal <Real, Dim> n (boths are Point struct).

So far so good (I suppose). These structures p and n are meant to be filled in some particular way?
Or maybe I could simply write:

p[i] = _coordinate //i within [1,3]

if so, this means that the base_read() functions is called as many times as the number of points in the point cloud?

Hope I asked the question in a clear manner. Thanks you in advance for your help

@mkazhdan
Copy link
Owner

Not sure what you mean by "constant term". But yes, you need to implement the base_read function. This is a function that takes the position and normal as references and tries to set them with the next point from the data stream. The function should return "true" if it successfully read and set the next point/normal and false otherwise.

The point itself is a struct that overloads the bracket operator, so you can set "p[i] = _coordinate; // i within[0,3)".

@ClaudioChiariello
Copy link
Author

With constant term I meant the $V$ in the poisson equation. We are trying to solve the poisson equation with respect the implicit function $\chi$:
$\Delta \chi = \nabla \cdot V$
So my input point cloud should be used to determinate the $V$, more or less, right?ù

Anyway, thank you for your answer, I'll try to implement my code on the basis of what you explained

@ClaudioChiariello
Copy link
Author

Excuse me professor, I have another important question: where do the functions base_read() and base_write() are called?

Based on the code in ReconstructionExample.cpp, it appears that the only function being called is implicit.extractlevelSet, so I expected to find a 'base_read()' function there, but I couldn't find anything.

Moreover, looking for that functions in other file, I only find declaration, and not calls.

Thanks again

@mkazhdan
Copy link
Owner

Don't remember off hand. But you should be able to grep for it.

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