|
|
I am using a while loop nested in another to create an array of objects
(as quoted below), and I'd like to make text labels for the rows and
columns giving the numerical value for each. I only know how to make
text objects with literal strings, though. Is there a way to use
variables for the string values, i.e., I would like to make a text
object at the beginning of each iteration using the values of "Row" and
"Column".
Thanks,
Andy
#declare ROWS =
#declare COLUMNS =
#declare Row=0
#while (Row<ROWS)
#declare Column=0
#declare Row=Row+1
#while (Column<COLUMNS)
#declare Column=Column+1
superellipsoid { <Row/ROWS, Column/COLUMNS>
texture {
pigment { Blue }
}
finish { phong 1 }
}
scale <Xscale, Yscale, Zscale>
rotate <-10,35,0>
translate <Xspace*Xscale*Column, Yspace*Yscale*Row, -2>
}
#end
#end
--
--------------------
Andrew Woodfin
UNC Charlotte Center for Precision Metrology
adw### [at] unccedu
--------------------
Post a reply to this message
|
|