傳回扇形座標點,可以與我的 xxx_extrude
或內建的 polygon
模組結合使用。
參數
radius
: 扇形的(圓)半徑。angle
: 接受單一角度,或者使用[angle1, angle2]
的形式來指定中心角起始與結束角度。$fa
,$fs
,$fn
: 詳見 circle 模組說明。
範例
include <shape_pie.scad>;
shape_pts = shape_pie(10, [45, 315], $fn = 24);
polygon(shape_pts);
include <shape_pie.scad>;
include <helix.scad>;
include <rotate_p.scad>;
include <cross_sections.scad>;
include <polysections.scad>;
include <helix_extrude.scad>;
shape_pts = shape_pie(10, [45, 315], $fn = 8);
helix_extrude(shape_pts,
radius = 40,
levels = 5,
level_dist = 20
);