mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
32 lines
530 B
Markdown
32 lines
530 B
Markdown
# hexagons
|
|
|
|
This module creates hexagons in a hexagon.
|
|
|
|
## 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
|
|
|
|
use <hexagons.scad>;
|
|
|
|
radius = 20;
|
|
spacing = 2;
|
|
levels = 2;
|
|
|
|
hexagons(radius, spacing, levels);
|
|
|
|
![hexagons](images/lib3x-hexagons-1.JPG)
|
|
|
|
use <hexagons.scad>;
|
|
|
|
radius = 20;
|
|
spacing = 2;
|
|
levels = 3;
|
|
|
|
hexagons(radius, spacing, levels);
|
|
|
|
|
|
![hexagons](images/lib3x-hexagons-2.JPG) |