mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-12 15:34:26 +02:00
remove euler angle from Shapes3d tutorial, cubetruss needs DOWN axis
so permit negative axis directions
This commit is contained in:
@@ -47,22 +47,13 @@ include <BOSL2/std.scad>
|
||||
cube([50,40,20], anchor=TOP+FRONT+LEFT);
|
||||
```
|
||||
|
||||
You can use `spin=` to rotate around the Z axis:
|
||||
You can use `spin=` to rotate around the Z axis **after** anchoring:
|
||||
|
||||
```openscad-3D
|
||||
include <BOSL2/std.scad>
|
||||
cube([50,40,20], anchor=FRONT, spin=30);
|
||||
```
|
||||
|
||||
3D objects also gain the ability to use an extra trick with `spin=`;
|
||||
if you pass a list of `[X,Y,Z]` rotation angles to `spin=`, it will
|
||||
rotate by the three given axis angles, similar to using `rotate()`:
|
||||
|
||||
```openscad-3D
|
||||
include <BOSL2/std.scad>
|
||||
cube([50,40,20], anchor=FRONT, spin=[15,0,30]);
|
||||
```
|
||||
|
||||
3D objects also can be given an `orient=` argument as a vector, pointing
|
||||
to where the top of the shape should be rotated towards.
|
||||
|
||||
|
Reference in New Issue
Block a user