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

41 lines
1.3 KiB
Markdown
Raw Normal View History

2017-05-05 16:04:55 +08:00
# archimedean_spiral_extrude
Extrudes a 2D shape along the path of an archimedean spiral.
2020-06-27 10:45:34 +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/lib2x-sweep.html) for details.
2017-05-05 16:04:55 +08:00
## Parameters
- `shape_pts` : A list of points represent a shape. See the example below.
2020-01-28 17:51:20 +08:00
- `arm_distance`, `init_angle`, `point_distance`, `num_of_points` and `rt_dir` : See [archimedean_spiral](https://openhome.cc/eGossip/OpenSCAD/lib2x-archimedean_spiral.html) for details.
2017-05-05 16:04:55 +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.
2020-06-27 10:45:34 +08:00
- `triangles` : `"SOLID"` (default), `"HOLLOW"` or user-defined indexes. See [sweep](https://openhome.cc/eGossip/OpenSCAD/lib2x-sweep.html) for details.
2017-05-05 16:04:55 +08:00
## Examples
2020-01-28 17:51:20 +08:00
use <archimedean_spiral_extrude.scad>;
2017-05-05 16:04:55 +08:00
shape_pts = [
2017-05-16 20:10:32 +08:00
[5, 0],
[5, 4],
[4, 4],
[4, 2],
[-4, 2],
[-4, 4],
[-5, 4],
[-5, 0]
2017-05-05 16:04:55 +08:00
];
archimedean_spiral_extrude(
shape_pts,
arm_distance = 15,
init_angle = 180,
point_distance = 5,
num_of_points = 100,
2017-05-10 16:41:47 +08:00
scale = [1, 5]
2017-05-05 16:04:55 +08:00
);
2020-03-30 20:13:47 +08:00
![archimedean_spiral_extrude](images/lib2x-archimedean_spiral_extrude-1.JPG)
2017-05-05 16:04:55 +08:00