mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 18:24:28 +02:00
rename
This commit is contained in:
@@ -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(
|
let(
|
||||||
right = 90,
|
right = 90,
|
||||||
thetaStep = 360 / n,
|
thetaStep = 360 / n,
|
||||||
|
@@ -11,6 +11,6 @@
|
|||||||
use <geom_star.scad>;
|
use <geom_star.scad>;
|
||||||
|
|
||||||
module star(outerRadius = 1, innerRadius = 0.381966, height = 0.5, n = 5) {
|
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]);
|
polyhedron(points_faces[0], points_faces[1]);
|
||||||
}
|
}
|
Reference in New Issue
Block a user