meta data for this page
  •  

Differences

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

Link to this comparison view

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>quick_reference_intro}} {{page>quick_reference_intro}}
Line 15: Line 13:
 {{page>quick_reference_conversion}} {{page>quick_reference_conversion}}
  
-===== OpenSCAD-like Functions ===== +{{page>quick_reference_expansions}}
-These functions ease the transition from the [[http://www.openscad.org/|OpenSCAD]] (proprietary script) to OpenJSCAD (JavaScript and objects). +
- +
-^  2D Solid  ^ +
-| var 2Dshape = circle(radius); +
-| var 2Dshape = circle(d);  /* diameter */ | +
-| var 2Dshape = square(size,center); +
-| var 2Dshape = square([width,height],center); +
-| var 2Dshape = polygon([points]); +
-| var 2Dshape = polygon([points],[paths]); +
- +
-//Note: The OpenSCAD text() function is not supported.// +
- +
-^  3D Solid  ^ +
-| var 3Dshape = torus();    /* ri = 1, ro = 4, fni: 16, fno: 32, roti: 0 */  | +
-| var 3Dshape = torus(ri: 1.5, ro: 3, fni: 4 });  | +
-| var 3Dshape = torus(ri: 1.5, ro: 3, fni:4, fno:4, roti:45 }); | +
- +
-===== Text ===== +
-| var path = vector_char(10,-10, 'A'); **/* X axis, Y axis, character */**  |  | +
-| var array_of_paths = vector_text(10,-10, 'Letters');  **/* X axis, Y axis, string of characters */**  | ::: |+
  
-{{page>quick_reference_parameters}}+{{page>quick_reference_text}}
  
 +{{page>quick_reference_general}}