meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
en:jscad_quick_reference [2020/11/28 01:37] JSCAD Editor created |
en:jscad_quick_reference [2020/12/02 00:06] (current) JSCAD Editor |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| The following sections provide quick reference to the JSCAD application programming interface (API), the heart of making designs. | The following sections provide quick reference to the JSCAD application programming interface (API), the heart of making designs. | ||
| - | |||
| - | //Note: **Default values** and **notes** are highlighted in **bold fonts**.// | ||
| {{page> | {{page> | ||
| Line 15: | Line 13: | ||
| {{page> | {{page> | ||
| - | ===== OpenSCAD-like Functions ===== | + | {{page> |
| - | These functions ease the transition from the [[http:// | + | |
| - | + | ||
| - | ^ 2D Solid ^ | + | |
| - | | var 2Dshape = circle(radius); | + | |
| - | | var 2Dshape = circle(d); | + | |
| - | | var 2Dshape = square(size, | + | |
| - | | var 2Dshape = square([width, | + | |
| - | | var 2Dshape = polygon([points]); | + | |
| - | | var 2Dshape = polygon([points], | + | |
| - | + | ||
| - | //Note: The OpenSCAD text() function is not supported.// | + | |
| - | + | ||
| - | ^ 3D Solid ^ | + | |
| - | | var 3Dshape = torus(); | + | |
| - | | var 3Dshape = torus({ ri: 1.5, ro: 3, fni: 4 }); | | + | |
| - | | var 3Dshape = torus({ ri: 1.5, ro: 3, fni:4, fno:4, roti: | + | |
| - | + | ||
| - | ===== Text ===== | + | |
| - | | var path = vector_char(10, | + | |
| - | | var array_of_paths = vector_text(10, | + | |
| - | {{page>quick_reference_parameters}} | + | {{page>quick_reference_text}} |
| + | {{page> | ||