Daniel
Sapoundjiev on
Converting BSpline to Cublic Bezier curves Converting BSpline to Cublic Bezier curvesIs it possibleYes. It is possible for every Uniform Cubic B-Spline Curve to be converted to Curbic Bezier Curves. Uniform Cubic B-Spline equationB(u) = P0(1-u)^3/6 + P1*(3u^3 - 6u^2 + 4)/6 + (-3u^3 + 3u^2 + 3u + 1)/6 + u^3/6 Cubic Bezier Curve equationB(t) = (1-t)^3*P0 + 3*(1-t)^2*t*P1 + 3*(1-t)*t^P2 + t^3*P3 Conversion code
function TBSpline.getBezierPoint2(aIndex: Integer; out CtrlPt2: TPoint2D): TPoint2D; Conversionto be continued Back to main menu |