1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib3x-bend_extrude.md
2022-06-06 13:11:46 +08:00

37 lines
1.0 KiB
Markdown

# bend_extrude
The purpose of `bend_extrude` is to replace `bend` when you have a 2D shape. `bend_extrude` is faster and doesn't produce jagged edges.
**Since:** 1.3.
## Parameters
- `size` : The size of a square which can contain the target shape.
- `thickness` : The thinkness used to extrude the shape.
- `angle` : The central angle of the arc shape. The radius of the arc is calculated automatically.
- `frags` : Number of fragments. The target shape will be cut into `frags` fragments and recombined into an arc object. The default value is 24.
## Examples
The containing square of the target shape should be laid down on the x-y plane. For example.
x = 9.25;
y = 9.55;
%square(size = [x, y]);
text("A");
![bend_extrude](images/lib3x-bend_extrude-1.JPG)
Once you have the size of the containing square, you can use it as the `size` argument of the `bend_extrude` module.
use <bend_extrude.scad>
x = 9.25;
y = 9.55;
bend_extrude(size = [x, y], thickness = 1, angle = 270)
text("A");
![bend_extrude](images/lib3x-bend_extrude-2.JPG)