1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-shape_starburst.md

35 lines
729 B
Markdown
Raw Normal View History

2018-12-11 18:06:47 +08:00
# shape_starburst
Returns shape points of a star. They can be used with xxx_extrude modules of dotSCAD. The shape points can be also used with the built-in polygon module.
## Parameters
- `r1` : The outer radius of the starburst.
- `r2` : The inner radius of the starburst.
2019-05-20 10:55:53 +08:00
- `n` : The burst number.
2018-12-11 18:06:47 +08:00
## Examples
2020-01-28 17:51:20 +08:00
use <shape_starburst.scad>;
2018-12-11 18:06:47 +08:00
polygon(shape_starburst(30, 12, 6));
2021-02-24 21:09:54 +08:00
![shape_starburst](images/lib3x-shape_starburst-1.JPG)
2018-12-11 18:06:47 +08:00
2020-01-28 17:51:20 +08:00
use <shape_starburst.scad>;
use <golden_spiral_extrude.scad>;
2018-12-11 18:06:47 +08:00
shape_pts = shape_starburst(5, 2, 8);
golden_spiral_extrude(
shape_pts,
from = 5,
to = 10,
point_distance = 1,
scale = 10
);
2021-02-24 21:09:54 +08:00
![shape_pentagram](images/lib3x-shape_starburst-2.JPG)
2018-12-11 18:06:47 +08:00