next up previous contents index
Next: fkreadasc Up: Reference Previous: fkprintasc   Contents   Index

fkprintfig

$ \bigcirc$Name


fkprintfig Convert fcurves to fig 3.2 polygons (on stdout)




$ \bigcirc$Command Synopsis


fkprintfig [-d d] [-e] [-s] [-m m] [-r r] in



-d d : display mode: 1=points, 2=lines (default), 3=both

-e : to mark extremal points

-s : to symmetrize y coordinate (y - >   -y)

-m m : to set magnification factor (default: auto + shift)

-r r : relative size of displayed points (default: 0.2)

in : input Fcurves




$ \bigcirc$Function Summary


void fkprintfig (in , d , e_flag , s_flag , m , r )

Fcurves in ;

int *d ;

char *e_flag , *s_flag ;

float *m , *r ;




$ \bigcirc$Description


This modules allows to convert a Fcurves structure to fig format. It prints on standart output a fig 3.2 file (readable by xfig or fig2dev for example) that describes the Fcurves in as a polygon (d = 2) or a set of points (d = 1) or both (d = 3). The coordinates of the points are rounded to integers in the following way. If the -s option is selected, a symetrization along the y coordinate (that is, (x, y) $ \mapsto$ (x, - y)) is first applied. Then, two cases are distinguished :

For display modes 1 and 3, the points are drawn as black filled discs with radius r (whose default value is 0.2) in the original Fcurves coordinates. If the -e option is set, the extremal points of each curve are drawn as black filled discs with radius 4r. For display modes 2 and 3, a polygon will be closed when the first and the last point of the corresponding Fcurve have exactly the same coordinates.

Examples :

fkprintfig -s france.crv > toto.fig
fig2dev -L ps -m 0.1 toto.fig toto.ps
ghostview toto.ps

fkprintfig -r 1 -d 1 -e -s france.crv > toto.fig
fig2dev -L ps -m 0.1 toto.fig toto.ps
ghostview toto.ps

fkcrop 0 600 100 700 france.crv toto.crv
fkprintfig -m 100 -e -d 3 -s toto.crv > toto.fig
fig2dev -L tiff -m 1 toto.fig toto.tiff
xv toto.tiff




$ \bigcirc$See Also


fkbox.




$ \bigcirc$Version 1.3


Last Modification date : Fri Jun 28 08:37:00 2002


$ \bigcirc$Author


Lionel Moisan






next up previous contents index
Next: fkreadasc Up: Reference Previous: fkprintasc   Contents   Index
mw 2004-05-05