1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib3x-box_extrude.md

29 lines
878 B
Markdown
Raw Normal View History

2017-03-26 16:51:41 +08:00
# box_extrude
2017-03-30 14:22:48 +08:00
Creates a box (container) from a 2D object.
2017-03-26 16:51:41 +08:00
## Parameters
- `height` : The box height.
2017-04-26 13:48:43 +08:00
- `shell_thickness` : The thickness between the exterior and interior.
2017-04-26 13:50:23 +08:00
- `offset_mode` : `"delta"` (default) or `"r"`. See [offset](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#offset) for details.
2017-04-26 13:48:43 +08:00
- `chamfer` : Default `false`. See [offset](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Transformations#offset) for details.
2019-10-02 09:12:27 +08:00
- `twist`, `slices`, `scale`: The same as `linear_extrude`. **Since:** 2.1.
2017-03-26 16:51:41 +08:00
## Examples
2020-01-28 17:51:20 +08:00
use <box_extrude.scad>;
2017-03-30 14:22:48 +08:00
2017-03-26 16:51:41 +08:00
box_extrude(height = 30, shell_thickness = 2)
circle(r = 30);
2021-02-24 21:09:54 +08:00
![box_extrude](images/lib3x-box_extrude-1.JPG)
2017-03-26 16:51:41 +08:00
2020-01-28 17:51:20 +08:00
use <box_extrude.scad>;
2017-03-30 14:22:48 +08:00
2017-03-26 16:54:06 +08:00
box_extrude(height = 30, shell_thickness = 2)
text("XD", size = 40, font = "Cooper Black");
2017-03-26 16:51:41 +08:00
2021-02-24 21:09:54 +08:00
![box_extrude](images/lib3x-box_extrude-2.JPG)
2017-03-26 16:51:41 +08:00