diff --git a/docs/lib-shape_pentagram.md b/docs/lib-shape_pentagram.md index 52254602..ca3690db 100644 --- a/docs/lib-shape_pentagram.md +++ b/docs/lib-shape_pentagram.md @@ -1,6 +1,6 @@ # shape_pentagram -Returns shape points and triangle indexes 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. +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. ## Parameters @@ -10,7 +10,7 @@ Returns shape points and triangle indexes of a pentagram. They can be used with include ; - polygon(shape_pentagram(5)[0]); + polygon(shape_pentagram(5)); ![shape_pentagram](images/lib-shape_pentagram-1.JPG) @@ -22,15 +22,14 @@ Returns shape points and triangle indexes of a pentagram. They can be used with include ; include ; - shape_pts_tris = shape_pentagram(2); + shape_pts = shape_pentagram(2); golden_spiral_extrude( - shape_pts_tris[0], + shape_pts, from = 5, to = 10, point_distance = 1, - scale = 10, - triangles = shape_pts_tris[1] + scale = 10 ); ![shape_pentagram](images/lib-shape_pentagram-2.JPG) diff --git a/src/shape_pentagram.scad b/src/shape_pentagram.scad index 95e59deb..682c776e 100644 --- a/src/shape_pentagram.scad +++ b/src/shape_pentagram.scad @@ -1,7 +1,7 @@ /** * shape_pentagram.scad * -* Returns shape points and triangle indexes of a pentagram. +* 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. * @@ -14,23 +14,9 @@ function shape_pentagram(r) = [ - // shape points - [ - [0, 1], [-0.224514, 0.309017], - [-0.951057, 0.309017], [-0.363271, -0.118034], - [-0.587785, -0.809017], [0, -0.381966], - [0.587785, -0.809017], [0.363271, -0.118034], - [0.951057, 0.309017], [0.224514, 0.309017] - ] * r, - // triangles - [ - [0, 1, 9], - [2, 3, 1], - [4, 5, 3], - [6, 7, 5], - [8, 9, 7], - [1, 3, 5], - [1, 5, 7], - [1, 7, 9] - ] - ]; \ No newline at end of file + [0, 1], [-0.224514, 0.309017], + [-0.951057, 0.309017], [-0.363271, -0.118034], + [-0.587785, -0.809017], [0, -0.381966], + [0.587785, -0.809017], [0.363271, -0.118034], + [0.951057, 0.309017], [0.224514, 0.309017] + ] * r; \ No newline at end of file