diff --git a/cheatsheet/index.html b/cheatsheet/index.html index 9495952..624cdca 100644 --- a/cheatsheet/index.html +++ b/cheatsheet/index.html @@ -14,26 +14,39 @@

OpenSCAD

v2021.01

+       Advanced: + +

Constants

-
+
undef
undefined value
+
+
PI
mathematical constant π (~3.14159)
@@ -45,6 +58,8 @@

Operators

n - m
Subtraction
n * m
Multiplication
n / m
Division
+
+
n % m
Modulo
n ^ m
Exponentiation
n < m
Less Than
@@ -67,6 +82,8 @@

Special variables

minimum size
$fn
number of fragments
+
+
$t
animation step
$vpr
@@ -98,7 +115,7 @@

Modifier Characters

transparent / background
-
+
-
+ -
+

List Comprehensions

Generate [ for (i = range|list) i ] Generate [ for (init;condition;next) i ] @@ -166,7 +187,7 @@

List Comprehensions

Conditions [ for (i = …) if (condition(i)) x else y ] Assignments [ for (i = …) let (assignments) a ]
-
+

Flow Control

for (i = [start:end]) { … } for (i = [start:step:end]) { … } @@ -178,7 +199,7 @@

Flow Control

if (…) { … } let (…) { … }
-
-
diff --git a/cheatsheet/snapshot.html b/cheatsheet/snapshot.html index ae0d3f7..f7c9219 100644 --- a/cheatsheet/snapshot.html +++ b/cheatsheet/snapshot.html @@ -14,26 +14,39 @@

OpenSCAD

(dev snapshot)

+       Advanced: + +

Constants

-
+
undef
undefined value
+
+
PI
mathematical constant π (~3.14159)
@@ -45,6 +58,8 @@

Operators

n - m
Subtraction
n * m
Multiplication
n / m
Division
+
+
n % m
Modulo
n ^ m
Exponentiation
n < m
Less Than
@@ -67,6 +82,8 @@

Special variables

minimum size
$fn
number of fragments
+
+
$t
animation step
$vpr
@@ -98,7 +115,7 @@

Modifier Characters

transparent / background
-
+
-
+ -
+

List Comprehensions

Generate [ for (i = range|list) i ] Generate [ for (init;condition;next) i ] @@ -167,7 +188,7 @@

List Comprehensions

Conditions [ for (i = …) if (condition(i)) x else y ] Assignments [ for (i = …) let (assignments) a ]
-
+

Flow Control

for (i = [start:end]) { … } for (i = [start:step:end]) { … } @@ -179,7 +200,7 @@

Flow Control

if (…) { … } let (…) { … }
-
-