diff --git a/docs/images/lib2-cone-2.JPG b/docs/images/lib2-cone-2.JPG new file mode 100644 index 00000000..63894d26 Binary files /dev/null and b/docs/images/lib2-cone-2.JPG differ diff --git a/docs/images/lib2-cone-3.JPG b/docs/images/lib2-cone-3.JPG new file mode 100644 index 00000000..0a9d6ce5 Binary files /dev/null and b/docs/images/lib2-cone-3.JPG differ diff --git a/docs/lib2-cone.md b/docs/lib2-cone.md new file mode 100644 index 00000000..1ebd3a94 --- /dev/null +++ b/docs/lib2-cone.md @@ -0,0 +1,67 @@ +# cone + +Create a cone for rotatable models. + +![cone](images/lib2-cone-1.JPG) + +**Since:** 2.1 + + +## Parameters + +- `radius` : The radius of the cone. +- `length` : The length of the cone. +- `spacing` : The spacing between the cone and void component. Default to `0.5`. +- `angle` : The angle between the bottom and hypotenuse. Default to `50` degree. +- `void` : The void component for differencing. It's used to create a cavity for a cone. Default to `false`. +- `ends` : Default to `false`. To create a double-ended cone, set it to `true`. + +## Examples + + include ; + + radius = 2.5; + length = 2; + spacing = 0.5; + + $fn = 48; + + cone( + radius = radius, + spacing = spacing, + length = 2 + ); + + %cone( + radius = radius, + spacing = spacing, + length = 2, + void = true + ); + +![cone](images/lib2-cone-2.JPG) + + include ; + + radius = 2.5; + length = 2; + spacing = 0.5; + + $fn = 48; + + cone( + radius = radius, + spacing = spacing, + length = 2, + ends = true + ); + + %cone( + radius = radius, + spacing = spacing, + length = 2, + void = true, + ends = true + ); + +![cone](images/lib2-cone-3.JPG) \ No newline at end of file