Jump to content
CinnamonMetal

Calculator a Parabola Curve

Recommended Posts

It is possible that the control I require is outside of a Parabola, since if I adjust the degree as seen in the image; only the left side of the curve is modified ?

As no matter how much I change the degree, the right side of the curve remains the same that is unless there is another way. 

parabolacurvy.png

Edited by CinnamonMetal

Share this post


Link to post
Share on other sites

You can define which points are filtered out.  You will get different results with different ids.  You know how to calculate the focus? As hint: If your parabola is y = a*x^2 + b*x + c the derivative is y' = 2*a*x + b. What will happen, if the derivative is 0 (base) and 1 (reflection at this point is from vertical to horizontal (45°)).

 

Share this post


Link to post
Share on other sites

This is just an option/example (related to your first picutre). If you don't want to use all points you can filter by id. By default you can use all but usually a curve with degree 2 won't fit good (higher degree has better chance for better fit). If you know you have a specific subset of points you want to use , you can set the id for this subset to 1.

Share this post


Link to post
Share on other sites

Currently the id=1, although using all the points on the curve won't fit well, I understand; but then you mention, I can use a specific subset of points that I want to use and set the id for that subset to 1 (id=1); although the id is already set to an id=1 ?

In using a subset, I can set the focus point although still maintain control of the curve if I don't use a subset; as it is currently ?

 

Share this post


Link to post
Share on other sites

Your subset should have id = 1 and the other points id != 1 (-1 for example). As I've mentioned before, this is just an example. You can rename this attribute if you want, but make sure to do this in python node aswell. With this method the parameters depends only on the least square fit (so the focus does).

Edited by Aizatulin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×