1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib-shape_pentagram.md
2017-05-06 15:41:25 +08:00

859 B

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.

Parameters

  • r : The length between the center and a tip.

Examples

include <shape_pentagram.scad>;

polygon(shape_pentagram(5)[0]);

shape_pentagram

include <shape_pentagram.scad>;
include <circle_path.scad>;
include <rotate_p.scad>;
include <golden_spiral.scad>;
include <cross_sections.scad>;
include <polysections.scad>;
include <golden_spiral_extrude.scad>;

shape_pts_tris = shape_pentagram(2);

golden_spiral_extrude(
	shape_pts_tris[0], 
	from = 5, 
	to = 10, 
	point_distance = 1,
	scale = 10,
	triangles = shape_pts_tris[1]
);

shape_pentagram