20 lines
256 B
Awk
20 lines
256 B
Awk
#!/usr/bin/awk
|
|
|
|
|
|
|
|
BEGIN {
|
|
print "// generated file, don't touch it bastard !"
|
|
print "#declare Pickover = object {"
|
|
print "union {"
|
|
}
|
|
|
|
# for every line
|
|
{
|
|
printf "sphere { <%f, %f, %f> 0.015 }\n", $1, $2, $3
|
|
}
|
|
|
|
|
|
END {
|
|
print "} }"
|
|
print "// done"
|
|
} |