Create a parabola by vertex and focus in grasshopper

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)

1 Like

I’m looking to create the parabola with just 2 points: focus and vertex

You’ll also have to specify where this parabola ends, otherwise you get an infinitely long curve which is not supported in Rhino.

2 Likes



Parabola.gh (6.5 KB)

4 Likes

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)