mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-15 11:14:17 +02:00
fixed example error
This commit is contained in:
@@ -38,20 +38,20 @@ The `rotate_p` function is useful in some situations. For examples, you probably
|
|||||||
step_angle = 10;
|
step_angle = 10;
|
||||||
z_circles = 20;
|
z_circles = 20;
|
||||||
|
|
||||||
points_angles = [for(a = [0:step_angle:90 * z_circles])
|
points = [for(a = [0:step_angle:90 * z_circles])
|
||||||
rotate_p(
|
rotate_p(
|
||||||
[radius, 0, 0],
|
[radius, 0, 0],
|
||||||
[0, -90 + 2 * a / z_circles, a]
|
[0, -90 + 2 * a / z_circles, a]
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
// Once you get all points on the path, you can place anything at each point.
|
// Once you get all points on the path, you can place anything at each point.
|
||||||
// I just place a sphere as a simple demonstration.
|
// I just place a sphere as a simple demonstration.
|
||||||
for(pa = points_angles) {
|
for(p = points) {
|
||||||
translate(pa[0])
|
translate(p)
|
||||||
sphere(1);
|
sphere(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
%sphere(radius);
|
%sphere(radius);
|
||||||
|
|
||||||

|

|
Reference in New Issue
Block a user