mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-10 00:36:39 +02:00
add example
This commit is contained in:
@@ -73,7 +73,8 @@ For cylindrical type attachables, the Z component of the anchor vector must be
|
|||||||
to the bottom rim, the middle side, or the top rim of the cylindrical or conical shape.
|
to the bottom rim, the middle side, or the top rim of the cylindrical or conical shape.
|
||||||
The X and Y components can be any value, pointing towards the circular perimeter of the cone.
|
The X and Y components can be any value, pointing towards the circular perimeter of the cone.
|
||||||
These combined let you point at any place on the bottom or top rims, or at an arbitrary
|
These combined let you point at any place on the bottom or top rims, or at an arbitrary
|
||||||
side wall.
|
side wall. When the Z component is zero you can omit it and pass just
|
||||||
|
an [X,Y] vector.
|
||||||
|
|
||||||
```openscad-3D
|
```openscad-3D
|
||||||
include <BOSL2/std.scad>
|
include <BOSL2/std.scad>
|
||||||
@@ -92,6 +93,14 @@ include <BOSL2/std.scad>
|
|||||||
cylinder(r1=25, r2=15, h=60, anchor=cylindrical_to_xyz(1,30,1));
|
cylinder(r1=25, r2=15, h=60, anchor=cylindrical_to_xyz(1,30,1));
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Here we anchor using a 2D XY vector where the Z value is assumed to be
|
||||||
|
zero:
|
||||||
|
|
||||||
|
```openscad-3D
|
||||||
|
include <BOSL2/std.scad>
|
||||||
|
cylinder(r=25, h=6, anchor=[-1,-2]);
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
For Spherical type attachables, you can pass a vector that points at any arbitrary place on
|
For Spherical type attachables, you can pass a vector that points at any arbitrary place on
|
||||||
|
Reference in New Issue
Block a user