1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib3x-pie.md

21 lines
760 B
Markdown
Raw Normal View History

2017-05-07 20:13:13 +08:00
# pie
2021-02-17 11:38:31 +08:00
Creates a pie (circular sector). Its `$fa`, `$fs` and `$fn` are consistent with the `circle` module.
2017-05-07 20:13:13 +08:00
## Parameters
- `radius` : The radius of the circle.
2017-05-22 08:27:03 +08:00
- `angle` : A single value or a 2 element vector which defines the central angle. The first element of the vector is the beginning angle in degrees, and the second element is the ending angle.
2017-05-07 20:13:13 +08:00
- `$fa`, `$fs`, `$fn` : Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) for more details.
## Examples
2020-01-28 17:51:20 +08:00
use <pie.scad>;
2017-05-07 20:13:13 +08:00
2017-05-22 08:26:37 +08:00
pie(radius = 20, angle = [210, 310]);
translate([-15, 0, 0]) pie(radius = 20, angle = [45, 135]);
translate([15, 0, 0]) pie(radius = 20, angle = [45, 135], $fn = 12);
2017-05-07 20:13:13 +08:00
2021-02-17 11:38:31 +08:00
![pie](images/lib3x-pie-1.JPG)
2017-05-07 20:13:13 +08:00