mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-08 22:00:45 +02:00
added hexagons
This commit is contained in:
BIN
docs/images/lib-hexagons-1.JPG
Normal file
BIN
docs/images/lib-hexagons-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
docs/images/lib-hexagons-2.JPG
Normal file
BIN
docs/images/lib-hexagons-2.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
32
docs/lib-hexagons.md
Normal file
32
docs/lib-hexagons.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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
|
||||
|
||||
include <hexagons.scad>;
|
||||
|
||||
radius = 20;
|
||||
spacing = 2;
|
||||
levels = 2;
|
||||
|
||||
hexagons(radius, spacing, levels);
|
||||
|
||||

|
||||
|
||||
include <hexagons.scad>;
|
||||
|
||||
radius = 20;
|
||||
spacing = 2;
|
||||
levels = 3;
|
||||
|
||||
hexagons(radius, spacing, levels);
|
||||
|
||||
|
||||

|
Reference in New Issue
Block a user