ggen

ggen is a 2-D geometry generator expressed as a c++ class library.
It includes output drivers for povray,
Superfish, and PostScript.
The library performs geometry calculations that include
smooth transitions between lines, circles, and ellipses.
The calling program has to describe the desired geometry
using a constructive series of operations. Since it is
run as a c++ program, that can be fully parameterized,
conditional, repetitive, etc.
Example of use:
- Start with the program inj3.cc.
- Compile it: make
- Run it: ./inj3 pov >inj3.pov
- Its immediate output file is inj3.pov
- You need the povray preamble file inj3_super.pov
- Finally, run povray: $ cat inj3_super.pov inj3.pov | x-povray +i- +oinj3.png +w320 +h240 +d +linclude
- Now you can see the output file inj3.png
Sound weird? Well, I needed it. The PostScript output is
useful for debugging a geometry. The Superfish output is used
for the real work. povray provides is the de rigour
presentation-quality output. In the longer term, this library
can be extended to front for other programs (like Urmel), or
integrated into them (like my mythical vapor-ware Superfish-like program
that might someday calculate S-parameters).
ggen is Copyright 2000 Larry Doolittle, and may
be freely used and copied according to the terms of the
GNU General
Public License, version 2.
Download snapshots:
Documentation is currently almost nonexistent. You're looking at it.
December 10, 2000
Larry Doolittle