GenerateBezier()

Summary

Takes an array of Bezier control points and returns the Bezier curve.

Syntax

curve = GenerateBezier(array points)

Argument Contents
points An array of Bezier control coordinates

Returns

An array of coordinates that define the curve.

Notes

  • The number of points in the point array minus one must be divisible by three, i.e., if n is the number of curve segments to be generated, the number of points in the array must be 3n+1.

Example

curve = GenerateBezier({Coord(-1116362, 52624533), Coord(-930802, 52823548),
Coord(-844007, 53327501), Coord(-555423, 53221710)})
ShowArray(curve)

Error Codes

Error Type Meaning
Error Either an invalid coordinate was used or the number of coordinates was not of the form 3n+1

See Also

Function Summary
FitBezier() Fits a Bezier curve to an array of points