Fortraneries/Fraktalism/pick2pov.awk

18 lines
267 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
{
2022-03-19 09:36:56 +11:00
printf "object { Truc translate <%f, %f, %f> }\n", $1, $2, $3
2022-03-08 20:36:32 +11:00
}
END {
print "} }"
2022-03-19 09:36:56 +11:00
print "// done", NR
2022-03-08 20:36:32 +11:00
}