Skip to main content
Became Hot Network Question
Tweeted twitter.com/StackMma/status/1158029911531118593
edited tags
Link
Alexey Popkov
  • 62.5k
  • 7
  • 163
  • 405
Source Link
Igor
  • 303
  • 1
  • 6

Why does BezierFunction not follow BezierCurve at npts>4?

This example:

pts = {{0, 0}, {1, 1}, {2, 0}, {3, 2}}; f = BezierFunction[pts] Show[Graphics[{Red, Point[pts], Green, Line[pts]}, Axes -> True], ParametricPlot[f[t], {t, 0, 1}],Graphics[{Blue, Dashed, BezierCurve[pts]}]] 

perfectly works producing

curves coincide

However with

pts = {{0, 0}, {1, 1}, {2, -1}, {3, 0}, {5, 2}, {6, -1}, {7, 3}}; 

it produces

curves do not coincide

Why do the curves not coincide and how to access BezierFunction for BezierCurve with npts>4?