1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/docs/lib3x-cone.md

67 lines
1.1 KiB
Markdown
Raw Normal View History

2019-09-21 13:27:14 +08:00
# cone
Create a cone for rotatable models.
2021-02-24 21:09:54 +08:00
![cone](images/lib3x-cone-1.JPG)
2019-09-21 13:27:14 +08:00
**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
2022-06-06 13:11:46 +08:00
use <part/cone.scad>
2019-09-21 13:27:14 +08:00
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
);
2021-02-24 21:09:54 +08:00
![cone](images/lib3x-cone-2.JPG)
2019-09-21 13:27:14 +08:00
2022-06-06 13:11:46 +08:00
use <part/cone.scad>
2019-09-21 13:27:14 +08:00
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
);
2021-02-24 21:09:54 +08:00
![cone](images/lib3x-cone-3.JPG)