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

updated doc

This commit is contained in:
Justin Lin 2017-05-03 16:29:10 +08:00
parent 81bc779d64
commit 2d9ad30d37
2 changed files with 21 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -5,6 +5,7 @@ Puts children along the given path. If there's only one child, it will put the c
## Parameters ## Parameters
- `points` : The points along the path. - `points` : The points along the path.
- `angles` : If it's given, rotate before translate each child.
## Examples ## Examples
@ -40,3 +41,23 @@ Puts children along the given path. If there's only one child, it will put the c
![along_with](images/lib-along_with-2.JPG) ![along_with](images/lib-along_with-2.JPG)
include <along_with.scad>;
include <circle_path.scad>;
include <rotate_p.scad>;
include <golden_spiral.scad>;
pts_angles = golden_spiral(
from = 5,
to = 11,
point_distance = 4
);
points = [for(p_a = pts_angles) p_a[0]];
angles = [for(p_a = pts_angles) p_a[1]];
along_with(points, angles)
rotate([90, 0, 0])
linear_extrude(1, center = true)
text("A", valign = "center", halign = "center");
![along_with](images/lib-along_with-3.JPG)