mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 01:34:12 +02:00
add cone doc
This commit is contained in:
BIN
docs/images/lib2-cone-2.JPG
Normal file
BIN
docs/images/lib2-cone-2.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
BIN
docs/images/lib2-cone-3.JPG
Normal file
BIN
docs/images/lib2-cone-3.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
67
docs/lib2-cone.md
Normal file
67
docs/lib2-cone.md
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
# cone
|
||||||
|
|
||||||
|
Create a cone for rotatable models.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**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 <part/cone.scad>;
|
||||||
|
|
||||||
|
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
|
||||||
|
);
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
include <part/cone.scad>;
|
||||||
|
|
||||||
|
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
|
||||||
|
);
|
||||||
|
|
||||||
|

|
Reference in New Issue
Block a user