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

32 lines
630 B
Markdown
Raw Normal View History

2017-05-06 15:41:25 +08:00
# shape_pentagram
2017-05-10 16:56:13 +08:00
Returns shape points of a pentagram. They can be used with xxx_extrude modules of dotSCAD. The shape points can be also used with the built-in polygon module.
2017-05-06 15:41:25 +08:00
## Parameters
- `r` : The length between the center and a tip.
## Examples
2022-06-06 13:11:46 +08:00
use <shape_pentagram.scad>
2017-05-06 15:41:25 +08:00
2017-05-10 16:56:13 +08:00
polygon(shape_pentagram(5));
2017-05-06 15:41:25 +08:00
2021-02-24 21:09:54 +08:00
![shape_pentagram](images/lib3x-shape_pentagram-1.JPG)
2017-05-06 15:41:25 +08:00
2022-06-06 13:11:46 +08:00
use <shape_pentagram.scad>
use <golden_spiral_extrude.scad>
2017-05-06 15:41:25 +08:00
2017-05-10 16:56:13 +08:00
shape_pts = shape_pentagram(2);
2017-05-06 15:41:25 +08:00
golden_spiral_extrude(
2017-05-10 16:56:13 +08:00
shape_pts,
2017-05-06 15:41:25 +08:00
from = 5,
to = 10,
point_distance = 1,
2017-05-10 16:56:13 +08:00
scale = 10
2017-05-06 15:41:25 +08:00
);
2021-02-24 21:09:54 +08:00
![shape_pentagram](images/lib3x-shape_pentagram-2.JPG)
2017-05-06 15:41:25 +08:00