1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-07-31 20:10:36 +02:00

updated doc

This commit is contained in:
Justin Lin
2017-05-19 13:50:51 +08:00
parent 06da003c66
commit 44ae08f1c4
2 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

@@ -6,6 +6,8 @@ Puts children along the given path. If there's only one child, it will put the c
- `points` : The points along the path. - `points` : The points along the path.
- `angles` : Rotate before translate each child. If not given, `angles` will be calculated automatically according to `points`. - `angles` : Rotate before translate each child. If not given, `angles` will be calculated automatically according to `points`.
- `twist` : If given, each child will be twisted before applying each element of `points` and `angles`.
- `scale` : If given, each child will be scaled before applying each element of `points` and `angles`. It accepts a single value, `[sx, sy]` or `[sx, sy, sz]`.
## Examples ## Examples
@@ -72,7 +74,7 @@ Puts children along the given path. If there's only one child, it will put the c
scale([2, 1]) scale([2, 1])
circle(1.25, $fn = 24); circle(1.25, $fn = 24);
} }
for(a = [0:30:330]) { for(a = [0:30:330]) {
rotate(a) rotate(a)
translate([5, 0, 0]) translate([5, 0, 0])
@@ -97,7 +99,7 @@ Puts children along the given path. If there's only one child, it will put the c
[p0, p1, p2, p3, p4, p5] [p0, p1, p2, p3, p4, p5]
); );
along_with(path_pts) along_with(path_pts, scale = 0.5)
scales(); scales();
![along_with](images/lib-along_with-4.JPG) ![along_with](images/lib-along_with-4.JPG)