1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-16 21:58:26 +01:00
dotSCAD/docs/lib3x-rounded_extrude.md

29 lines
958 B
Markdown
Raw Permalink Normal View History

2017-05-14 17:07:52 +08:00
# rounded_extrude
Extrudes a 2D object roundly from 0 to 180 degrees.
## Parameters
2017-05-30 10:28:58 +08:00
- `size` : The size of a rectangle which can cover the 2D object. Accepts single value, square with both sides this length. It also accepts 2 value array `[x, y]`, rectangle with dimensions `x` and `y`.
2017-05-14 17:07:52 +08:00
- `round_r` : The radius when extruding roundly.
- `angle` : 0 to 180 degrees. The default value is 90 degrees.
- `convexity`, `twist`: The same as respective parameters of `linear_extrude`.
- `$fa`, `$fs`, `$fn` : Used to control the round fragments. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) for more details.
## Examples
2022-06-06 13:11:46 +08:00
use <rounded_extrude.scad>
2017-05-14 17:07:52 +08:00
$fn = 48;
circle_r = 10;
round_r = 5;
rounded_extrude(circle_r * 2, round_r)
circle(circle_r);
translate([0, 0, round_r])
cylinder(h = 20, r1 = circle_r + round_r, r2 = 0);
2021-02-24 21:09:54 +08:00
![rounded_extrude](images/lib3x-rounded_extrude-1.JPG)