#declare RedBall =
sphere{<0,0,0>,1
texture{ pigment{ color rgb<1,0,0>}
finish { diffuse 0.9 phong 1}}}
//--------------------- row in z direction ------
object{RedBall scale<1.00,1,1> translate<0,0, 0>}
object{RedBall scale<0.67,1,1> translate<0,0,-3>}
object{RedBall scale<0.33,1,1> translate<0,0,-6>}
object{RedBall scale<1.50,1,1> translate<0,0, 3>}
object{RedBall scale<2.50,1,1> translate<0,0, 6>}
// -------------------- row in x direction ----
object{RedBall scale<1,4.6,1> translate<-6,0, 0>}
object{RedBall scale<1,2.0,1> translate<-3,0, 0>}
object{RedBall scale<1,0.6,1> translate< 3,0, 0>}
object{RedBall scale<1,0.3,1> translate< 6,0, 0>}
//----------------------------------------------- |
scale = changing of the size
general syntax:
scale s
or with different scales in the basic directions:
scale <sx,sy,sz>
this causes a multiplication (enlargement or reduction of the size) of the dimensions
of an object in all 3 basic directions. Hereby the x values (width) are multiplicated by sx,
the y values (height) are multiplicated by sy and the z values (deepth) are multiplicated by sz.
|