Pink 0.9

drawsplinesorient.c File Reference

draw spline orientations in a vector field (multiple spline version) More...


Detailed Description

draw spline orientations in a vector field (multiple spline version)

Usage: drawsplinesorient in.pgm in.splines out.pgm

Description: Draws spline orientations in a vector field. The spline is specified by its control points in a text file. The parameter in.pgm gives a vector field into which the spline is to be drawn.

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 ...
...

Types supported: spline 2D, spline 3D

Category: draw geo

Author:
Michel Couprie