1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00
This commit is contained in:
Justin Lin
2021-12-02 10:25:53 +08:00
parent a82827e389
commit abd287b29e
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
function star(outerRadius = 1, innerRadius = 0.381966, height = 0.5, n = 5) =
function geom_star(outerRadius = 1, innerRadius = 0.381966, height = 0.5, n = 5) =
let(
right = 90,
thetaStep = 360 / n,

View File

@@ -11,6 +11,6 @@
use <geom_star.scad>;
module star(outerRadius = 1, innerRadius = 0.381966, height = 0.5, n = 5) {
points_faces = star(outerRadius, innerRadius, height, n);
points_faces = geom_star(outerRadius, innerRadius, height, n);
polyhedron(points_faces[0], points_faces[1]);
}