# polysections

``````[
[0, 3, 1],
[1, 3, 4],
[1, 4, 2],
[2, 4, 5],
[2, 5, 0],
[0, 5, 3]
]
``````

## 參數

• `sections` : 切面清單。每個切面使用座標點來定義，詳見底下範例。
• `triangles` : `"SOLID"`（預設）、`"HOLLOW"` 或自定義索引。詳見底下範例。

## 範例

``````include <rotate_p.scad>;

section1 = [
[20, 0, 0],
[18, 9, 0],
[15, 10, 0],
[10, 0, 0]
];

// 盤旋 section1
sections = [
for(i = [0:55])
[
for(p = section1)
let(pt = rotate_p(p, [90, 0, 10 * i]))
[pt[0], pt[1] , pt[2] + i]
]
];

polysections(sections);
``````

``````include <rotate_p.scad>;

section1 = [
// 外輪廓
[20, 0, 0],
[18, 9, 0],
[15, 10, 0],
[10, 0, 0],
// 內輪廓
[18, 2, 0],
[17, 7, 0],
[15, 7, 0],
[12, 2, 0]
];

// 盤旋 section1
sections = [
for(i = [0:55])
[
for(p = section1)
let(pt = rotate_p(p, [90, 0, 10 * i]))
[pt[0], pt[1] , pt[2] + i]
]
];

polysections(sections, "HOLLOW");
``````

``````include <rotate_p.scad>;

section1 = [
// 外輪廓
[30, 0, 0],
[15, 10, 0],
[10, 0, 0],
// 內輪廓
[26, 1, 0],
[15, 8, 0],
[12, 1, 0],
];

// 盤旋 section1
sections = [
for(i = [0:55])
[
for(p = section1)
let(pt = rotate_p(p, [90, 0, 10 * i]))
[pt[0], pt[1] , pt[2] + i]
]
];

polysections(
sections = sections,
triangles = [
[0, 3, 1],
[1, 3, 4],
[1, 4, 2],
[2, 4, 5],
[2, 5, 0],
[0, 5, 3]
]
);
``````