TetaTricks/code/awk/mkunion.awk
2024-09-16 03:21:41 +02:00

19 lines
297 B
Awk
Executable File

#!/usr/bin/awk -f
# create the sdl object: an union of sphere
BEGIN {
print "#declare Bubules = object"
print "{ \nunion { "
}
# active portion of the code
{
printf(" sphere { <%f, %f, %f>, %f }\n", \
$1, $2, $3, $4 )
}
# closing sdl structure
END {
print " }\n}\n"
}