This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jscad_design_guide [2018/02/08 13:27] z3dev |
jscad_design_guide [2018/03/21 00:31] (current) z3dev |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Design Guide ==== | + | ====== Design Guide ====== |
- | In general, designs are written using the JavaScript language. Training and help about JavaScript can be found online. | + | |
- | Creating a new design starts by writing simple scripts which call functions to create and manipulate shapes. JSCAD executes the script, and renders the design for viewing. | + | Creating a new JSCAD design starts by writing simple scripts which call functions to create and manipulate shapes. In general, JSCAD designs are written using the JavaScript language. |
- | JSCAD scripts adhere to specific standards for passing parameters to functions (See the sections below for details.) However, most parameters are optional as default values are provided. | + | //[[https://www.w3schools.com/js/default.asp|Find out more about JavaScript at w3schools]]// |
- | 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]. | + | The JSCAD suite of applications executes the script, generates shapes, applies transforms, performs operations, and renders the design for viewing. |
+ | |||
+ | {{page>design_guide_anatomy}} | ||
+ | |||
+ | {{page>design_guide_3d_primitives}} | ||
+ | |||
+ | {{page>design_guide_2d_primitives}} | ||
+ | |||
+ | {{page>design_guide_transforms}} | ||
+ | |||
+ | {{page>design_guide_operations}} | ||
+ | |||
+ | {{page>design_guide_conversions}} | ||
+ | |||
+ | {{page>design_guide_attributes}} |