Share

Curve API (CAPI)

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Cannot run the demo

You are viewing a single message from this topic. View all messages.

  1. 2007-04-24 14:16:50 UTC
    > However, I only see an empty JFrame.

    Double click to add points.

    > Also, I would like to know where is the code responsible to
    > draw a Bezier curve?

    The BezierCurve.java file has the mathematical equations to generate the points.
    The BinaryCurveApproximationAlgorithm.java file samples a finite set of points on the curve (from the infinite set of points possible).

    As for drawing, a MultiPath object is used to collect the sampled points. You can either draw the line segments yourself, or collect the points using the ShapeMultiPath.

    There is a simple example in the readme.txt file.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.