mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-29 09:19:59 +02:00
added shape_taiwan
This commit is contained in:
@@ -83,7 +83,8 @@ Too many dependencies? Because OpenSCAD doesn't provide namespace management, I
|
||||
- [sphere_spiral_extrude](https://openhome.cc/eGossip/OpenSCAD/lib-sphere_spiral_extrude.html)
|
||||
|
||||
- Shape
|
||||
- [shape_arc](https://openhome.cc/eGossip/OpenSCAD/lib-shape_arc.html)
|
||||
- [shape_taiwan](https://openhome.cc/eGossip/OpenSCAD/lib-shape_taiwan.html)
|
||||
- [shape_arc](https://openhome.cc/eGossip/OpenSCAD/lib-shape_arc.html)
|
||||
- [shape_pie](https://openhome.cc/eGossip/OpenSCAD/lib-shape_pie.html)
|
||||
- [shape_ellipse](https://openhome.cc/eGossip/OpenSCAD/lib-shape_ellipse.html)
|
||||
- [shape_square](https://openhome.cc/eGossip/OpenSCAD/lib-shape_square.html)
|
||||
|
BIN
docs/images/lib-shape_taiwan-1.JPG
Normal file
BIN
docs/images/lib-shape_taiwan-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
docs/images/lib-shape_taiwan-2.JPG
Normal file
BIN
docs/images/lib-shape_taiwan-2.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
36
docs/lib-shape_taiwan.md
Normal file
36
docs/lib-shape_taiwan.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 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.
|
||||
|
||||
## Examples
|
||||
|
||||
include <shape_taiwan.scad>;
|
||||
|
||||
polygon(shape_taiwan(10));
|
||||
|
||||

|
||||
|
||||
include <shape_taiwan.scad>;
|
||||
include <circle_path.scad>;
|
||||
include <rotate_p.scad>;
|
||||
include <golden_spiral.scad>;
|
||||
include <cross_sections.scad>;
|
||||
include <polysections.scad>;
|
||||
include <golden_spiral_extrude.scad>;
|
||||
|
||||
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
|
||||
);
|
||||
|
||||

|
||||
|
15
src/shape_taiwan.scad
Normal file
15
src/shape_taiwan.scad
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user