TetaTricks/code/awk/mkunion.awk

16 lines
183 B
Awk
Raw Normal View History

2023-02-11 12:19:00 +01:00
#!/usr/bin/awk -f
BEGIN {
print "#declare Bubules = object"
print "{ \nunion { "
}
{
printf(" sphere { <%f, %f, %f>, %f }\n", \
$1, $2, $3, $4 )
}
END {
}