1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2024-12-23 04:23:55 +02:00

cameo/test/: test scenario for area fill

This commit is contained in:
Werner Almesberger 2012-03-18 13:19:13 -03:00
parent 2530a11c80
commit 8c4dfc55b6
3 changed files with 54 additions and 0 deletions

7
cameo/test/Makefile Normal file
View File

@ -0,0 +1,7 @@
.PHONY: all plot
all:
./doit
plot:
echo 'plot "in.gp" with lines, "out.gp" with lines' | gnuplot -persist

10
cameo/test/doit Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
../cameo <<EOF
gnuplot 3 in.gp
offset inside
write out.gp
clear
gnuplot 3 in.gp
area 3 0
append out.gp
EOF

37
cameo/test/in.gp Normal file
View File

@ -0,0 +1,37 @@
0 0 0
40 0 0
#40 20 0
50 20 0
#60 20 0
60 0 0
95 0 0
100 10 0
100 100 0
80 100 0
65 80 0
60 100 0
40 100 0
35 90 0
20 100 0
10 100 0
0 0 0
#%outside
50 40 0
80 40 0
80 70 0
50 70 0
50 40 0
#%outside
10 30 0
30 30 0
30 50 0
10 50 0
10 30 0
60 50 0
60 60 0
70 60 0
70 50 0
60 50 0