cramicule is comming !
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
BEGIN {
|
||||
count = 0
|
||||
bx = by = bz = 0.0
|
||||
print "// --------------------------------"
|
||||
print "// GENERATED FILE, DON'T TOUCH IT !"
|
||||
print "// --------------------------------"
|
||||
print
|
||||
@@ -21,19 +22,21 @@ BEGIN {
|
||||
|
||||
color = "Cyan"
|
||||
if (merged) {
|
||||
if (age > 150) color = "Orange"
|
||||
else color = "Yellow"
|
||||
if (age > 150) color = "OrangeRed"
|
||||
else color = "GreenYellow"
|
||||
}
|
||||
else {
|
||||
if (age > 150) color = "DarkGreen"
|
||||
else color = "Aquamarine"
|
||||
}
|
||||
if (age < 18) color = "Gray40"
|
||||
if (age < 9) color = "Blue"
|
||||
if (age < 9) color = "LimeGreen"
|
||||
|
||||
# calcul barycentre
|
||||
bx += $1
|
||||
by += $2
|
||||
bz += $3
|
||||
|
||||
pigment = "pigment { color " color " }"
|
||||
printf "\tsphere { <%f, %f, %f>, %f \n\t\t%s }\n", \
|
||||
$1, $2, $3, $4, pigment
|
||||
|
||||
Reference in New Issue
Block a user