Fortraneries/Fraktalism/pick2pov.awk

18 lines
267 B
Awk
Raw Normal View History

2022-03-08 10:36:32 +01:00
#!/usr/bin/awk
BEGIN {
print "// generated file, don't touch it bastard !"
print "#declare Pickover = object {"
print "union {"
}
# for every line
{
2022-03-18 23:36:56 +01:00
printf "object { Truc translate <%f, %f, %f> }\n", $1, $2, $3
2022-03-08 10:36:32 +01:00
}
END {
print "} }"
2022-03-18 23:36:56 +01:00
print "// done", NR
2022-03-08 10:36:32 +01:00
}