2017-04-11 15:38:35 +08:00
|
|
|
# hexagons
|
|
|
|
|
2021-02-13 11:11:23 +08:00
|
|
|
This module creates hexagons in a hexagon.
|
2017-04-11 15:38:35 +08:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `radius` : The radius of every hexagon.
|
|
|
|
- `spacing` : The length of the gap between hexagons.
|
|
|
|
- `levels` : How many levels if counting from the center?
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2020-01-28 17:51:20 +08:00
|
|
|
use <hexagons.scad>;
|
2017-04-11 15:38:35 +08:00
|
|
|
|
|
|
|
radius = 20;
|
|
|
|
spacing = 2;
|
|
|
|
levels = 2;
|
|
|
|
|
|
|
|
hexagons(radius, spacing, levels);
|
|
|
|
|
2021-02-13 11:11:23 +08:00
|
|
|
![hexagons](images/lib3x-hexagons-1.JPG)
|
2017-04-11 15:38:35 +08:00
|
|
|
|
2020-01-28 17:51:20 +08:00
|
|
|
use <hexagons.scad>;
|
2017-04-11 15:38:35 +08:00
|
|
|
|
|
|
|
radius = 20;
|
|
|
|
spacing = 2;
|
|
|
|
levels = 3;
|
|
|
|
|
|
|
|
hexagons(radius, spacing, levels);
|
|
|
|
|
|
|
|
|
2021-02-13 11:11:23 +08:00
|
|
|
![hexagons](images/lib3x-hexagons-2.JPG)
|