Basics.md -> Transforms.md

This commit is contained in:
Revar Desmera 2020-03-25 15:24:54 -07:00
parent 8cd0168f27
commit d4e56a9099
2 changed files with 7 additions and 9 deletions

View file

@ -1,10 +1,8 @@
# BOSL2 Basics Tutorial # BOSL2 Transforms Tutorial
<!-- TOC --> <!-- TOC -->
## Transforms ## Translation
### Translation
The `translate()` command is very simple: The `translate()` command is very simple:
```openscad ```openscad
#sphere(d=20); #sphere(d=20);
@ -58,7 +56,7 @@ specify the motion on each axis more clearly:
``` ```
### Scaling ## Scaling
The `scale()` command is also fairly simple: The `scale()` command is also fairly simple:
```openscad ```openscad
scale(2) cube(10, center=true); scale(2) cube(10, center=true);
@ -81,7 +79,7 @@ commands to do just that; `xscale()`, `yscale()`, and `zscale()`:
``` ```
### Rotation ## Rotation
The `rotate()` command is fairly straightforward: The `rotate()` command is fairly straightforward:
```openscad ```openscad
rotate([0,30,0]) cube(20, center=true); rotate([0,30,0]) cube(20, center=true);
@ -157,7 +155,7 @@ This lets you rewrite the above vector rotation more clearly as:
``` ```
### Mirroring ## Mirroring
The standard `mirror()` command works like this: The standard `mirror()` command works like this:
```openscad ```openscad
#yrot(60) cylinder(h=50, d1=20, d2=10); #yrot(60) cylinder(h=50, d1=20, d2=10);
@ -200,7 +198,7 @@ All of the flip commands can offset where the mirroring is performed:
``` ```
### Skewing ## Skewing
One transform that OpenSCAD does not perform natively is skewing. One transform that OpenSCAD does not perform natively is skewing.
BOSL2 provides the `skew()` command for that. You give it multipliers BOSL2 provides the `skew()` command for that. You give it multipliers
for the skews you want to perform. The arguments used all start with `s`, for the skews you want to perform. The arguments used all start with `s`,

View file

@ -8,7 +8,7 @@
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,227]; BOSL_VERSION = [2,0,228];
// Section: BOSL Library Version Functions // Section: BOSL Library Version Functions