meta data for this page
This is an old revision of the document!
Scale
Shapes can be scaled by any factor. Shapes are enlarged (increases) or shrunk (diminishes) by scale factors, about X, Y, and Z axis. The result of scaling is a similar shape (in the geometric sense) to the original.
Learn about the scaling shapes at Wikipedia.org
Defaults:
- factor : [1.0, 1.0, 1.0]
let myshape = sphere({radius: 5}) let newshape = scale([2, 4, 6], myshape)
In addition, there are simple versions of the same function for scale about a single axis.
let myshape = sphere({radius: 5}) let newshape = scaleX(2, myshape)
let myshape = sphere({radius: 5}) let newshape = scaleY(4, myshape)
let myshape = sphere({radius: 5}) let newshape = scaleZ(6, myshape)