Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
ManfredHerr is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UppCad (or UltimateCad) is borning -- Updated January 2013 -- see last post
Next Topic: Alligator - Visual Studio PDB file analyzer
Goto Forum:
  


Current Time: Sat Apr 20 08:01:47 CEST 2024

Total time taken to generate the page: 0.02679 seconds