refactoring, first step

This commit is contained in:
tTh
2023-04-20 22:33:46 +02:00
parent a1056ee836
commit 87c2ffd88d
6 changed files with 141 additions and 42 deletions

22
tools/edges2cylinders.awk Executable file
View File

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