shape_starburst


傳回 n 芒星形的座標點,可以與我的 xxx_extrude 或內建的 polygon 模組結合使用。

參數

  • r1 : 外半徑。
  • r2 : 內半徑。
  • n : 星芒數。

範例

include <shape_starburst.scad>;

polygon(shape_starburst(5));

shape_starburst

include <shape_starburst.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 = shape_starburst(5, 2, 8);

golden_spiral_extrude(
    shape_pts, 
    from = 5, 
    to = 10, 
    point_distance = 1,
    scale = 10
);

shape_starburst