add a feature
This commit is contained in:
parent
a1df488c58
commit
716345e270
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# create the sdl object: an union of sphere
|
# create the sdl object: an union of sphere
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
nbre = 0
|
||||||
print "#declare Bubules = object"
|
print "#declare Bubules = object"
|
||||||
print "{ \nunion { "
|
print "{ \nunion { "
|
||||||
}
|
}
|
||||||
@ -10,9 +11,11 @@ BEGIN {
|
|||||||
{
|
{
|
||||||
printf(" sphere { <%f, %f, %f>, %f }\n", \
|
printf(" sphere { <%f, %f, %f>, %f }\n", \
|
||||||
$1, $2, $3, $4 )
|
$1, $2, $3, $4 )
|
||||||
|
nbre++
|
||||||
}
|
}
|
||||||
|
|
||||||
# closing sdl structure
|
# closing sdl structure
|
||||||
END {
|
END {
|
||||||
print " }\n}\n"
|
print " }\n}"
|
||||||
|
printf "// %d bubulles\n", nbre
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user