Singular
https://www.singular.uni-kl.de/forum/

File Types (Save or Export)
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=1904
Page 1 of 1

Author:  formpig [ Thu Jan 27, 2011 3:26 am ]
Post subject:  File Types (Save or Export)

Hi All.

Hoping to become a new user. I have a CAD and Design background but no math background.

Would anyone mind helping me out with an explanation of what kind of CAD file types it is possible to export from Singular?

Thanks.

Author:  gorzel [ Thu Feb 03, 2011 12:00 am ]
Post subject:  Re: File Types (Save or Export)

There is, apart from plain ASCII-text, no special CAD file type that Singular directly supports.

(For more advanced communication with external programs see the data type link http://www.singular.uni-kl.de/Manual/la ... htm#SEC141 .)

// ----
When I want to create some graphics, related to mathematical objects,
I mainly use xfig to produce on the fly a (vector-) graphic.

The process takes three steps, where you may replace the converter by
your favourite one.

1.) With the write (or the fprintf) command write plain ASCII text
which encodes the graphic data, like polygon lines, circles, colours,
shading etc.

2.) With the system command call from inside Singular
the converter fig2dev to get a pdf file.

3.) Again with the system command, call some viewer, e.g. gv

You will also find these mechanics in the library resgraph.lib
http://www.singular.uni-kl.de/Manual/la ... tm#SEC1142
which uses the dot program to produce a graphic and xv to display it.

// ------

Another program which may attract your interest is the ray tracer
surf (java-frontend surfer) to visualize algebraic curves and surfaces.

http://www.imaginary2008.de/surfer.php?lang=en

http://sourceforge.net/projects/surf/

(Note that the raytracer does not generate graphics from mesh / convex hull,
but from the equations that describe the coordinates.)

surf can be called directly (similar as described above) from Singular
via the library surf.lib
http://www.singular.uni-kl.de/Manual/la ... tm#SEC1467.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/