cosmetic
This commit is contained in:
parent
b12bdfe306
commit
f5de09b23a
24
tools/edges2bubulles.awk
Executable file
24
tools/edges2bubulles.awk
Executable 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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user