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

Documentation on the class or methods #4

Open
javierpastorfernandez opened this issue Dec 19, 2023 · 1 comment
Open

Documentation on the class or methods #4

javierpastorfernandez opened this issue Dec 19, 2023 · 1 comment

Comments

@javierpastorfernandez
Copy link

Good evening,

Thank you very much for your work! It is super interesting
I previously wrote an issue about the availability of the demos.

This issue is pretty related to it, as my final purpose is to understand and be able to reproduce the demos offered as .gifs.
Some of the outputs of the demos are not outputted as direct return attributes of functions as far as I am concerned.

For example, I was trying to reproduce the demo of the spline fitting but the function auto stat = ppl::LERPer::extractB_path(data, control_points, tolerance); // fit a cubic Bézier path to the data only outputs the statistics of the fitting process, but it does not output the number of curves as argument, nor which control points are associated with each fitted Bezier ...etc

I would like to know if it is possible to retrieve the info, similarly as performed in the demos, or should I move on.

Thank you so much for your work, and your time!
Have a great day :)

@ChevronOne
Copy link
Owner

Hi, it's been a long time since I did the demo. so unfortunately I don't think I still do have the source code for it!
I think I did the demo by rendering a sequence of points and straight lines with OpenGL. However, the library is not about rendering, which if you want you still can do in various ways. Many online resources are available!
The return value of the mentioned function will just give you some insights about the fitting process, and as mentioned in documented example the fitted Bézier path will be stored in the second parameter control_points, which is a container of control points. Each four points will make a cubic Bézier curve, where the end control point of each cubic curve will be the begin control point of the cubic curve that follows it. Hope that helps:-)

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