有時候你需要圓路徑上的各個點。這個函式一樣可以使用 $fa
、$fs
與 $fn
,作用跟使用 circle
時相同。
參數
radius
: 圓半徑。n
: 需要的點數,值不應超過圓的邊數。$fa
,$fs
,$fn
: 詳見 circle 模組中的說明。
範例
include <circle_path.scad>;
$fn = 24;
points = circle_path(radius = 50);
polygon(points);
leng = len(points);
step_angle = 360 / leng;
for(i = [0:leng - 1]) {
translate(points[i])
rotate([90, 0, 90 + i * step_angle])
linear_extrude(1, center = true)
text("A", valign = "center", halign = "center");
}