Fortraneries/Fraktalism/pick2pov.awk

20 lines
256 B
Awk
Raw Normal View History

2022-03-08 20:36:32 +11:00
#!/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"
}