Create "Bezier" line of point array with "CreateQuadraticBezier" (not "CreateCatmullRomSpline")

Hi Guys!

I wanna draw a “Bezier” line along given points.
First i used “CreateCatmullRomSpline” which gives the possibility to pass an array of points (Vector3).

But the result of this is not quite what i’m looking for.

So i wanted to use “CreateQuadraticBezier” to have a similar result than drawing a Bezier line with “InkScape”.

But i don’t know how to pass my point array (let’s assume we have 20 points) to “CreateQuadraticBezier” which only accepts 3 points (as parameter).

Could anybody give me an advice how to do?

Best regards,
Tim

A quadratic Bezier has two fixed control points through which the curve must pass and a third control point that determines the shape of the curve.
A cubic Bezier has two fixed control points through which the curve must pass and a third and fourth control points that determines the shape of the curve.

So it is not possible to build a quadratic or cubic Bezier curve from 20 points.

It is possible using the continue method to place Bezier (and other curves) on after the other, eg Babylon.js Playground.

I am not sure how you draw lines in Inkscape with Bezier curves but both the lathe and extrusion apps from http://cubees.github.io/ use chains of Bezier curves, code.