Fortraneries/Fraktalism/pick2pov.awk

18 lines
267 B
Awk

#!/usr/bin/awk
BEGIN {
print "// generated file, don't touch it bastard !"
print "#declare Pickover = object {"
print "union {"
}
# for every line
{
printf "object { Truc translate <%f, %f, %f> }\n", $1, $2, $3
}
END {
print "} }"
print "// done", NR
}