Home > Flex, Math > Closest Point on a Cubic Bezier Update

Closest Point on a Cubic Bezier Update

August 13, 2008

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.

Categories: Flex, Math Tags: , ,
  1. JT
    August 13, 2008 at 8:31 am

    What’s a graphic gem?

  2. August 13, 2008 at 8:35 am
  3. August 13, 2008 at 11:23 am
  4. August 13, 2008 at 11:27 am

    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

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: