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

24 lines
921 B
Markdown
Raw Normal View History

2017-05-11 15:24:02 +08:00
# rounded_cylinder
Creates a rounded cylinder.
## Parameters
- `radius` : The radius of the cylinder. It also accepts a vector `[r1, r2]`. `r1` is the bottom radius and `r2` is the top radius of a cone.
- `h` : The height of the cylinder or cone.
- `round_r` : The sphere radius which fits the edges of the bottom and the top.
- `center` : `false` (default), z ranges from 0 to h. `true`, z ranges from -h/2 to +h/2
- `convexity` : See [Rotate Extrude](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#Rotate_Extrude) for details.
2017-05-27 14:43:48 +08:00
- `$fa`, `$fs`, `$fn` : Used to control the rounded edges. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) for more details.
2017-05-11 15:24:02 +08:00
## Examples
2022-06-06 13:11:46 +08:00
use <rounded_cylinder.scad>
2017-05-11 15:24:02 +08:00
rounded_cylinder(
radius = [20, 10],
h = 25,
round_r = 3
);
2021-02-20 20:25:58 +08:00
![rounded_cylinder](images/lib3x-rounded_cylinder-1.JPG)