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

34 lines
1.3 KiB
Markdown
Raw Normal View History

2017-05-06 06:56:24 +08:00
# sphere_spiral_extrude
Extrudes a 2D shape along the path of a sphere spiral.
2021-02-24 21:09:54 +08:00
When using this module, you should use points to represent the 2D shape. If your 2D shape is not solid, indexes of triangles are required. See [sweep](https://openhome.cc/eGossip/OpenSCAD/lib3x-sweep.html) for details.
2017-05-06 06:56:24 +08:00
## Parameters
- `shape_pts` : A list of points represent a shape. See the example below.
2021-02-24 21:09:54 +08:00
- `radius` , `za_step`, `z_circles`, `begin_angle`, `end_angle`, `vt_dir`, `rt_dir` : See [sphere_spiral](https://openhome.cc/eGossip/OpenSCAD/lib3x-sphere_spiral.html) for details.
2017-05-06 06:56:24 +08:00
- `twist` : The number of degrees of through which the shape is extruded.
- `scale` : Scales the 2D shape by this value over the length of the extrusion. Scale can be a scalar or a vector.
2021-02-24 21:09:54 +08:00
- `triangles` : `"SOLID"` (default), `"HOLLOW"` or user-defined indexes. See [sweep](https://openhome.cc/eGossip/OpenSCAD/lib3x-sweep.html) for details.
2017-05-06 06:56:24 +08:00
## Examples
2022-06-06 13:11:46 +08:00
use <sphere_spiral_extrude.scad>
use <shape_pentagram.scad>
2017-05-06 06:56:24 +08:00
points_triangles = shape_pentagram(2);
sphere_spiral_extrude(
2017-05-10 16:45:08 +08:00
shape_pts = points_triangles,
2017-05-06 06:56:24 +08:00
radius = 40,
za_step = 2,
z_circles = 20,
begin_angle = 90,
end_angle = 450,
vt_dir = "SPI_UP",
2017-05-10 16:45:08 +08:00
scale = 5
2017-05-06 06:56:24 +08:00
);
2021-02-24 21:09:54 +08:00
![sphere_spiral_extrude](images/lib3x-sphere_spiral_extrude-1.JPG)