# Differences

This shows you the differences between two versions of the page.

 design_guide_scale [2018/02/15 12:59]z3dev created design_guide_scale [2018/06/12 14:21] (current)z3dev 2018/06/12 14:21 z3dev 2018/06/12 14:19 z3dev 2018/04/14 16:04 z3dev 2018/04/14 03:31 z3dev 2018/04/14 03:30 z3dev 2018/04/14 03:29 z3dev 2018/04/14 03:29 z3dev 2018/04/14 03:27 z3dev 2018/03/19 13:49 z3dev 2018/03/19 13:49 z3dev 2018/03/19 13:48 z3dev 2018/02/15 12:59 z3dev created Next revision Previous revision 2018/06/12 14:21 z3dev 2018/06/12 14:19 z3dev 2018/04/14 16:04 z3dev 2018/04/14 03:31 z3dev 2018/04/14 03:30 z3dev 2018/04/14 03:29 z3dev 2018/04/14 03:29 z3dev 2018/04/14 03:27 z3dev 2018/03/19 13:49 z3dev 2018/03/19 13:49 z3dev 2018/03/19 13:48 z3dev 2018/02/15 12:59 z3dev created Line 1: Line 1: ==== Scale ==== ==== Scale ==== - ​ + Shapes can be scaled by any factor. Shapes are enlarged ​(increases) or shrunk ​(diminishes) by a scale factor. The result of scaling is a similar shape (in the geometric sense) to the original. - var obj = sphere(5); + - scale(2,obj);          // openscad like + - scale([1,2,3],obj);    //      '' ​ + - obj.scale([1,​2,​3]);    // using CSG objects'​ built in methods + //​[[https://​en.wikipedia.org/​wiki/​Scaling_(geometry)|Learn about the scaling shapes at Wikipedia.org]]//​ + + Defaults: + * factor : 1.0 or [1.0,​1.0,​1.0] + + ​ + let obj = sphere(5) + obj = scale(2,​obj) + obj = scale([1,​2,​3],obj) ​ + The CSG library functions can also be used. //NOTE: Deprecated in the V2 API// + + ​ + obj.scale([1,​2,​3]) +