1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
#
# Test splines
#
$ DATA=CURVE2D
% toplabel="Cubic B-Spline"
% subtitle="Curve passes through midpoints of data points"
% xmin=0.0 xmax=1.1
% ymin=0.0 ymax=1.1
% spline=1
% markertype=2
% pointID=T
0.275 1
0.275 0.5
0.5 0.275
0.725 0.5
0.725 1
0.275 1
$ DATA=CURVE2D
% toplabel="Catmull-Rom Spline"
% subtitle="Curve passes through data points"
% xmin=0.0 xmax=1.1
% ymin=0.0 ymax=1.1
% spline=4
% markertype=2
% pointID=T
0.05 1
0.05 0.5
0.5 0.05
0.95 0.5
0.95 1
$ DATA=CONTOUR
% toplabel="Splined contours"
% subtitle="This works"
% spline=1
# Define the headers
% xmin = 100 xmax = 300
% ymin = 0.0 ymax = 100
% nx = 5
% ny = 4
% contlabel=T
0.0 0.0 0.0 0.0 0.0
0.0 1.0 0.0 1.0 0.0
0.0 0.0 1.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0
$ DATA=CONTOUR
% toplabel="Splined contours"
% subtitle="But this doesn't"
% spline=1
# Define the headers
% xmin = 0.0 xmax = 0.2
% ymin = 0.0 ymax = 0.1
% nx = 5
% ny = 4
% contlabel=T
0.0 0.0 0.0 0.0 0.0
0.0 1.0 0.0 1.0 0.0
0.0 0.0 1.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0
$END
#
# Test splines
#
$ DATA=CONTOUR
% toplabel="Splined contours"
% subtitle="This works"
% spline=1
# Define the headers
% xmin = 0.1 xmax = 0.3
% ymin = 0.0 ymax = 0.1
% contours=(0.1)
% nx = 5
% ny = 4
% contlabel=T
0.0 0.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0 0.0
0.0 0.0 1.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0
$ DATA=CONTOUR
% toplabel="Splined contours"
% subtitle="But this doesn't"
% spline=1
# Define the headers
% xmin = 0.0 xmax = 0.2
% ymin = 0.0 ymax = 0.1
% contours=(0.1)
% nx = 5
% ny = 4
% contlabel=T
0.0 0.0 0.0 0.0 0.0
0.0 1.0 0.0 0.0 0.0
0.0 0.0 1.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0
$END
|