1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 16:54:23 +02:00

fixed example error

This commit is contained in:
Justin Lin
2017-03-29 15:30:51 +08:00
parent 503cb1591f
commit 4d8a33e1a2

View File

@@ -38,20 +38,20 @@ The `rotate_p` function is useful in some situations. For examples, you probably
step_angle = 10;
z_circles = 20;
points_angles = [for(a = [0:step_angle:90 * z_circles])
points = [for(a = [0:step_angle:90 * z_circles])
rotate_p(
[radius, 0, 0],
[0, -90 + 2 * a / z_circles, a]
)
];
// Once you get all points on the path, you can place anything at each point.
// I just place a sphere as a simple demonstration.
for(pa = points_angles) {
translate(pa[0])
// Once you get all points on the path, you can place anything at each point.
// I just place a sphere as a simple demonstration.
for(p = points) {
translate(p)
sphere(1);
}
%sphere(radius);
%sphere(radius);
![rotate_p](images/lib-rotate_p-2.JPG)