|
Italiano
Français Deutsch |
|
Samples:
"scale<1,1,1>" causes nothing, this means that all is shown by 1:1.
"scale<1,0.5,1>" reduces the values in y direction to the half.
"scale<2,1,1>" expands the values in x direction to double width.
"scale<1,1,-1>" mirrows an object at the xy plane in x direction.
Attention:
The step by step application of
rotation, translation and concentrical streching ("scale")
in general is not interchangeable!
The result is not the same if we mix it up - it depends on the sequence on how we apply it!
While constructing scene descriptions too shallow
this often is a source of many errors with a high potential of frustration!!!
.
// to the image above: #declare RedBall = sphere{<0,0,0>,1 texture{pigment{color Red} finish {ambient 0.15 diffuse 0.85 phong 1}}} //------------------------------- row in z direction -------------- object{RedBall scale <1.00,1,1> translate <0,0, 0>} //At zero!!! 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>} //------------------------------------------------------------------ |
Hint: |
"rotate" | overview | "matrix" - shearing, etc. |