1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-24 21:41:33 +02:00
Files
dotSCAD/docs/lib2x-hexagons.md
Justin Lin c62b4ef638 rename
2020-03-30 20:13:47 +08:00

32 lines
582 B
Markdown

# hexagons
A hexagonal structure is useful in many situations. 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/lib2x-hexagons-1.JPG)
use <hexagons.scad>;
radius = 20;
spacing = 2;
levels = 3;
hexagons(radius, spacing, levels);
![hexagons](images/lib2x-hexagons-2.JPG)