This commit is contained in:
tTh 2023-04-30 11:15:59 +02:00
parent b12bdfe306
commit f5de09b23a

24
tools/edges2bubulles.awk Executable file
View File

@ -0,0 +1,24 @@
#!/bin/awk -f
#
# this software is NOT ready for prime time !
#
BEGIN {
count = 0
print "/* DO NOT EDIT BY HAND, BASTARD !*/"
print "/* generated ", strftime(), " */"
print
print "#declare OBJ_vertices = object\n{"
print "union {"
}
{
printf "sphere { <%.9f, %.9f, %.9f>, RR }\n", $1, $2, $3
count++;
}
END {
print " }\n}\n"
print "// ", count, "vertices.\n"
}