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

51 lines
1.2 KiB
Markdown
Raw Normal View History

2017-05-12 20:25:18 +08:00
# shape_taiwan
Returns shape points of [Taiwan](https://www.google.com.tw/maps?q=taiwan&um=1&ie=UTF-8&sa=X&ved=0ahUKEwjai9XrqurTAhVIopQKHbEHClwQ_AUICygC). They can be used with xxx_extrude modules of dotSCAD. The shape points can be also used with the built-in polygon module.
## Parameters
- `h` : The height of Taiwan.
2019-06-06 13:27:26 +08:00
- `distance` : Used for simplifying the shape. If the distance between a point and its previous points is not greater than `distance`, the point will be kept. Default to 0. **Since:** 1.3.
2017-05-12 20:25:18 +08:00
## Examples
2022-06-06 13:11:46 +08:00
use <shape_taiwan.scad>
2017-05-12 20:25:18 +08:00
polygon(shape_taiwan(10));
2021-02-24 21:09:54 +08:00
![shape_taiwan](images/lib3x-shape_taiwan-1.JPG)
2017-05-12 20:25:18 +08:00
2022-06-06 13:11:46 +08:00
use <shape_taiwan.scad>
use <golden_spiral_extrude.scad>
2017-05-12 20:25:18 +08:00
mirror_taiwan = [for(pt = shape_taiwan(15)) [pt[0] * -1, pt[1]]];
golden_spiral_extrude(
mirror_taiwan,
from = 1,
to = 10,
point_distance = 2.5,
scale = 10
);
2021-02-24 21:09:54 +08:00
![shape_taiwan](images/lib3x-shape_taiwan-2.JPG)
2017-05-12 20:25:18 +08:00
2022-06-06 13:11:46 +08:00
use <shape_taiwan.scad>
use <helix_extrude.scad>
2017-05-13 14:04:07 +08:00
r1 = 15;
r2 = 100;
levels = 3;
level_dist = 50;
2017-05-17 11:12:03 +08:00
helix_extrude(shape_taiwan(80),
2017-05-13 14:04:07 +08:00
radius = [r1, r2],
levels = levels,
level_dist = level_dist,
vt_dir = "SPI_DOWN",
rt_dir = "CLK",
scale = 0.1
);
2021-02-24 21:09:54 +08:00
![shape_taiwan](images/lib3x-shape_taiwan-3.JPG)