# Differences

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

 design_guide_parameters [2018/03/20 12:19]z3dev design_guide_parameters [2018/03/21 00:49]z3dev Both sides previous revision Previous revision 2018/03/21 00:53 z3dev 2018/03/21 00:49 z3dev 2018/03/20 12:19 z3dev 2018/03/20 11:42 z3dev 2018/03/20 11:33 z3dev 2018/02/09 11:14 z3dev 2018/02/09 11:10 z3dev [Passing Options] 2018/02/09 11:08 z3dev created 2018/03/21 00:53 z3dev 2018/03/21 00:49 z3dev 2018/03/20 12:19 z3dev 2018/03/20 11:42 z3dev 2018/03/20 11:33 z3dev 2018/02/09 11:14 z3dev 2018/02/09 11:10 z3dev [Passing Options] 2018/02/09 11:08 z3dev created Last revision Both sides next revision Line 13: Line 13: cylinder({start:​ [0,0,0], end: [0,0,10], r1: 1, r2: 2, fn: 50}) cylinder({start:​ [0,0,0], end: [0,0,10], r1: 1, r2: 2, fn: 50}) - Why the strange syntax? There can be lots parameters, ​and this provides a lot of flexibility when creating complex designs. + Why the strange syntax? There can be lots parameters, ​default parameters can be skipped, order is not important, etc. This provides a lot of flexibility when creating complex designs. === Passing Vectors === === Passing Vectors === When 3D vectors are required, parameters can be passed as an array. If a scalar (single value) is passed for a parameter which expects a 3D vector, the scalar is used for the x, y and z values. In other words: radius: 1 will give radius: [1,1,1]. When 3D vectors are required, parameters can be passed as an array. If a scalar (single value) is passed for a parameter which expects a 3D vector, the scalar is used for the x, y and z values. In other words: radius: 1 will give radius: [1,1,1].