finished the first awk example
This commit is contained in:
1 parent
0ee9005885
commit
28933d542c
2 files changed
+51
-5
No files matched your search
@@ -1,15 +1,18 @@
|
||||
#!/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"
|
||||
}
|
||||
Reference in new issue
Block a user