The gem3Ddraw data format
The data format of gem3Ddraw is quite simple. It
is best illustrated with an example. Let's describe the octahedron
(|V|=6, |E|=13), a solid whose 8 faces consist of
equilateral triangles (see left figure). A layout computed by gem3Ddraw is
shown in the right figure.
The following is an appropriate input file for
gem3Ddraw.
6 12 n
1 quader red
2 quader red
3 quader red
4 quader red
5 quader red
6 quader red
1 5
1 4
1 2
1 6
2 5
2 3
2 6
3 5
3 4
3 6
4 5
4 6
The first line contains general information on the graph: the number of
nodes n, edges m, and directedness y/n.
Afterwards, two blocks containing the n vertices and m
edges describe the graph. A vertex entry looks like this:
vertex_name shape color
Edge entries have the form
x y
indicating that there is an edge from x to y.
Shapes
Legal shapes for vertices are presently
- quader
- spere
- cone
- cube
- torus
- dodecahedron
- teapot
- octahedron
- tetrahedron
- icosahedron
Colors
Currently, the following colors are supported.
- red
- green
- blue
- black
- white
- yellow
- pink
Enhancements
Suggested enhancements include
- labels and colors for individual edges.
- arbitrary user-supplied vertex shapes
- a more general color scheme
- edge shapes (e.g. dashed, dotted)
Arne Frick
Last modified: Mon Jul 31 16:56:32 MDT 1995