Closest Point on a Cubic Bezier Update

I’m porting the classic Graphic Gem for computing the closest point on a Bezier curve to an arbitrary point from C to AS3. The Gem code only works for cubic Beziers, so that is the starting point for testing. My goal is to provide a utility that works for quadratic or cubic curves. Composite Bezier curves or splines are generally used to fit a larger set of points, with each segment composed of a cubic Bezier.

The first pass of the port is complete, although more testing is required before extending the code to work with quadratics.

Closest point on a cubic Bezier curve to an arbitrary point
Closest point on a cubic Bezier curve to an arbitrary point

When the BezierUtils class is complete, I’ll post two new online demos and an update of the Singularity code base. This will be used as a starting point for discussion of issues involving cusps and alternate optima.

Advertisement

4 thoughts on “Closest Point on a Cubic Bezier Update

  1. I’m less interested in the raw capability (for personal use) and much more interested in a vehicle to use for teaching and demonstration of various algorithms. That potential is maximized if I can tightly integrate TechNotes and other demos with my own application code.

    thanks,

    – jim

Comments are closed.