mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-07-31 20:10:36 +02:00
updated doc
This commit is contained in:
BIN
docs/images/lib-along_with-3.JPG
Normal file
BIN
docs/images/lib-along_with-3.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
@@ -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
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
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");
|
||||||
|
|
||||||
|

|
Reference in New Issue
Block a user