Hi Bhushan,

    Fist off this seems like a silly thing to do but take a look at:
        getElementsByTagNameNS(...)
    And the formula:

        for (theta=0; theta<2*PI; theta+=step) {
           x = cos(theta)*rx + cx;
           y = sin(theta)*ry + cy;
         }

    Step is a function of how accurate you want the polyline.

bhushan_kalse wrote:
> 
> Hi Everyone!
> 
> I am a new member of this group so not sure if my querry is already 
> been discussed.
> 
> I want to convert ellipse and/or circle into a chain of polylines. 
> Means, I want to substitute ellipse/circle in a SVG file by using 
> number of lines/polylines. Is there any way to do this ? 
> 
> e.g. 
> if there is a tag like, 
> <ellipse 
> 
> how can I substitute this by 
> <polyline 
> 
> in such a way that an ellipse will be created by using "polyline" 
> instead of a real "ellipse" command.
> 
> Thanks,
> Bhushan.
> 
> 
> 
> 
> 
> 
> -----
> To unsubscribe send a message to: [EMAIL PROTECTED]
> -or-
> visit http://groups.yahoo.com/group/svg-developers and click "edit my 
> membership"
> ---- 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to