I think the answer is to break it into 2 curveshapes and use a cubic spline function to set the control points so the curve is smooth going thru the middle point. I looked into this a few months ago, but didn't finish. There are several web sites that explain how to calculate control point values for a cubic spline function.

This is, I believe, what most 'draw' programs do when connecting a set of points with a curved line.

I DO think that curveshapes are the way to do this, but the solution is not trivial.

John Kubie

On Sep 23, 2006, at 3:09 PM, lveillette wrote:

Let's say I have 3 points, x1,y1(0,0) x2,y2(10,10) and x3y3 (20,0) and I
want to draw a curve going from x1,y1 to x3,y3 and pssing thru x2,2...

I tried using the curveShape and x2,y2 as a control point but my line passes
somewhere bewteen y1 and y2

Does someone know how to achive what I would like to do?

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to