diff --git a/docs/images/lib-circular_sector-1.JPG b/docs/images/lib-circular_sector-1.JPG new file mode 100644 index 00000000..77408a86 Binary files /dev/null and b/docs/images/lib-circular_sector-1.JPG differ diff --git a/docs/lib-circular_sector.md b/docs/lib-circular_sector.md new file mode 100644 index 00000000..f98eb499 --- /dev/null +++ b/docs/lib-circular_sector.md @@ -0,0 +1,18 @@ +# circular_sector + +Create a circular sector. You can pass a 2 element vector to define the central angle. + +## Parameters + +`radius` : The radius of the circle. +`angles` : A 2 element vector which defines the central angle. The first element of the vector is the beginning angle, and the second element is the ending angle. +`fn` : The `$fn` value used by the `circle` module internally. The default value is 24. + +## Examples + + circular_sector(radius = 20, angles = [-50, -150]); + translate([-15, 0, 0]) circular_sector(radius = 20, angles = [45, 135]); + translate([15, 0, 0]) circular_sector(radius = 20, angles = [45, 135], fn = 12); + +![circular_sector](images/lib-circular_sector-1.JPG) +