Curving SVG

victorsk
04-15-2005, 09:39 PM
Hello,

I am new to SVG and was wondering if there is a way to draw a curve in SVG without using a control point. For example, if I need to draw a curve from (x0, y0) to (x1, y1) to (x2, y2) where (x1, y1) is at the cusp(top) of the curve, is there a way to do it without defining a control point for (x1, y1)? I tried a polyline but it only draws straight lines and I need them to curve. Please help.

Thank you,
Victor.

Anonymous
04-16-2005, 06:35 AM
You can use arc between points, but best is Bezier cubic
See at
http://pilat.free.fr/svgopen/diapos_animation/Graphs06.svg

With key +, you can see next slides, - for previous

Michel

ioiufo
04-16-2005, 06:37 AM
Hi Victor,
I don't know if there is a way to do that. But, what is the problem to use the Bezier curve? You have only to write a code such
<path d="M x0 y0 Q x1 y1 x2 y2" fill="none" stroke="blue" /> and that's all...
Sorry, but I don't know more...
Bye Fable

Anonymous
04-17-2005, 02:37 PM
Hello,

Thank you very much for your replies. I don't mind writing in Bezier format, it's just as I understand the control point is not the actual point where curve would intersect it. So if I have points p0, p1, p2 on which the curve lies, I'd have to find out a point pX according to Bezier format in order that it will be a smooth path p0, p1, p2. Or am I wrong?

Thank you.
Victor.

Anonymous
04-17-2005, 04:06 PM
Hello,

I just want to thank once again for providing that website link. I found what I needed under "Cardinal Spline" topic.

Thanks a lot!
Victor.

B
05-09-2007, 12:34 PM
Victor,

If you're still on these forums, I need to get it touch with you regarding your solution

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum