1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00
This commit is contained in:
Justin Lin
2021-11-05 08:33:44 +08:00
parent 9271c79a3a
commit 4cdeb5b4a6
4 changed files with 24 additions and 2 deletions

View File

@@ -371,7 +371,7 @@ These examples incubate dotSCAD and dotSCAD refactors these examples. See [examp
--|--
[**select**(i)](https://openhome.cc/eGossip/OpenSCAD/lib3x-select.html) | select module objects.
[**polyline_join**(points)](https://openhome.cc/eGossip/OpenSCAD/lib3x-polyline_join.html) | place a join on each point. Hull each pair of joins and union all convex hulls.
shape_star | create a 2D star.
[**shape_star**([outer_radius, inner_radius, n])](https://openhome.cc/eGossip/OpenSCAD/lib3x-shape_star.html) | create a 2D star.
## Polyhedra

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

22
docs/lib3x-star.md Normal file
View File

@@ -0,0 +1,22 @@
# shape_star
Create a star. Default to a pentagram.
**Since:** 3.2
## Parameters
- `outer_radius`: the outer radius of the star. Default to 1.
- `inner_radius`: the inner radius of the star. Default to 0.381966.
- `n`: the burst number. Default to 5.
## Examples
use <shape_star.scad>;
polygon(shape_star());
translate([3, 0, 0])
polygon(shape_star(n = 8));
![shape_star](images/lib3x-shape_star-1.JPG)

View File

@@ -10,4 +10,4 @@
use <_impl/_shape_star_impl.scad>;
function shape_star(outerRadius = 1, innerRadius = 0.381966, n = 5) = _shape_star_impl(outerRadius, innerRadius, n);
function shape_star(outer_radius = 1, inner_radius = 0.381966, n = 5) = _shape_star_impl(outer_radius, inner_radius, n);