refactoring, first step
This commit is contained in:
22
tools/edges2cylinders.awk
Executable file
22
tools/edges2cylinders.awk
Executable 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"
|
||||
}
|
||||
Reference in New Issue
Block a user