Hi,
How can i create a parabola by vertex and focus in grasshopper?
Thanks
Patrick
Hi,
How can i create a parabola by vertex and focus in grasshopper?
Thanks
Patrick
#Python
from Rhino.Geometry.NurbsCurve import CreateParabolaFromFocus
a = CreateParabolaFromFocus(f, s, e)
//C#
private void RunScript(Point3d f, Point3d s, Point3d e, ref object A)
{
A = NurbsCurve.CreateParabolaFromFocus(f, s, e);
}
Parabola.gh (6.7 KB)
You’ll also have to specify where this parabola ends, otherwise you get an infinitely long curve which is not supported in Rhino.
Super! Thank you so much!
I have tested the script with a custom Cplane (different from XY Cplane) and the parola from script is different from parabola in rhino. parabola.3dm (35.5 KB) parabola.gh (12.4 KB)