Pink 0.9

drawsplineorient.c File Reference

draw spline orientations in a vector field More...


Detailed Description

draw spline orientations in a vector field

Usage: drawsplineorient in.pgm in.spline 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 format for in.spline is the following for 2D:

c n+1 (where n+1 denotes the number of control points)
x1 y1
...
xn+1 yn+1
C0X1 C0Y1 C1X1 C1Y1 C2X1 C2Y1 C3X1 C3Y1
...
C0Xn C0Yn C1Xn C1Yn C2Xn C2Yn C3Xn C3Yn

and in the 3D case:

C n+1 (where n+1 denotes the number of control points)
x1 y1 z1
...
xn+1 yn+1 zn+1
C0X1 C0Y1 C0Z1 C1X1 C1Y1 C1Z1 C2X1 C2Y1 C2Z1 C3X1 C3Y1 C3Z1
...
C0Xn C0Yn C0Zn C1Xn C1Yn C1Zn C2Xn C2Yn C2Zn C3Xn C3Yn C3Zn

Types supported: spline 2D, spline 3D

Category: draw geo

Author:
Michel Couprie