Pink 0.9
|
draw spline segments which are specified by a text file More...
draw spline segments which are specified by a text file
Usage: drawsplines in.pgm splines.txt [len] out.pgm
Description: Draws splines which are specified by control points in a text file. The parameter in.pgm gives an image into which the splines are to be drawn. The file format for splines.txt is the following for 2D:
The file splines.txt contains a list of splines under the format:
d nb_splines
nb_points_spline_1 x11 y11 x12 y12 ...
nb_points_spline_2 x21 y21 x22 y22 ...
nb_points_spline_3 x31 y31 x32 y32 ...
...
or, in 3D:
D nb_splines
nb_points_spline_1 x11 y11 z11 x12 y12 z12 ...
nb_points_spline_2 x21 y21 z21 x22 y22 z22 ...
nb_points_spline_3 x31 y31 z31 x32 y32 z32 ...
...
If parameter len is given and non-zero, the splines are extended on both sides by straight line segments of length len.
Types supported: byte 2D, byte 3D
Category: draw geo