This function generates a Bézier curve from the given control points.
The control points
The number of points to generate
The Bézier curve as a list of 3D coordinates
This function generates a Bézier curve from the given control points.