Is anyone can tell me how to create Bezier Curve with given Bezier polygon and parameter t by using de Casteljau algorithm (not the Bezier function in Mathematica)in Mathematica code? Thanks a lot!
closed as off-topic by rasher, bobthechemist, m_goldberg, Yves Klett, gpap Apr 2 at 22:06
This question appears to be off-topic. The users who voted to close gave this specific reason:
I'm not sure what you are exactly looking for. Anyway, here's my code for computing a point on a Bézier curve using de Casteljau's algorithm. I'm fairly new to Mathematica and I hope I haven't made too many errors. Maybe one of the experienced users can have a look at the code?
The code is adapted from a code example of 'The NURBS book'. The same pseudo code can be found in the german Wikipedia article about de Casteljau's algorithm (http://de.wikipedia.org/wiki/De-Casteljau-Algorithmus).
Some example data: