Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » GeoFun -- Plot Spirograph
Re: GeoFun -- Plot Spirograph [message #43757 is a reply to message #43720] |
Fri, 03 October 2014 17:25 |
ManfredHerr
Messages: 67 Registered: February 2013 Location: Germany
|
Member |
|
|
Hi Deepak,
on my UBUNTU 14.04 I tried your new export as SVG. Neither SVG-viewer of mine (Emacs, Firefox, etc.) did show a roulette curve but garbage.
A short examination of your code revealed that you try to export the points in float format rather than integer. Applying the following change
for ( int j = 0; j < p.GetCount(); j++ )
// sXML << Format ( "%0.4f", p[j].x ) << "," << Format ( "%0.4f", p[j].y ) << " ";
sXML << Format ( "%d,%d ", p[j].x, p[j].y );
produced a file that shows a part of the curve at least. It is one (4.) quadrant only because the shift of the origin is missing.
I hope this is of some help to you.
Manfred
|
|
|
|
|
GeoFun -- Plot Spirograph
By: deep on Thu, 28 February 2013 16:38
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Fri, 01 March 2013 13:39
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Fri, 01 March 2013 13:45
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Sun, 03 March 2013 18:59
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Thu, 25 September 2014 19:47
|
|
|
Re: GeoFun -- Plot Spirograph
By: koldo on Fri, 26 September 2014 09:01
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Sat, 27 September 2014 19:57
|
|
|
Re: GeoFun -- Plot Spirograph
By: koldo on Mon, 29 September 2014 08:56
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Mon, 29 September 2014 15:24
|
|
|
Re: GeoFun -- Plot Spirograph
By: koldo on Tue, 30 September 2014 17:23
|
|
|
Re: GeoFun -- Plot Spirograph
By: Klugier on Wed, 01 October 2014 23:30
|
|
|
Re: GeoFun -- Plot Spirograph
|
|
|
Re: GeoFun -- Plot Spirograph
By: deep on Wed, 08 October 2014 17:01
|
|
|
Re: GeoFun -- Plot Spirograph
|
|
|
Re: GeoFun -- Plot Spirograph
|
Goto Forum:
Current Time: Sat Apr 20 08:01:47 CEST 2024
Total time taken to generate the page: 0.02679 seconds
|