Syntax error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Syntax error

jon_bondy
What am I missing here, please?  I get red dots on line 10 (the "zz"
line) and a syntax error on line 13 (the "for" line)



include <BOSL2/std.scad>

th = 2;
eps = 0.01;
ht = 8;
wi = 4;

dh = [15,  15,  13,  11,   9,   9,   8,   9];
dv = [21,  21,  14,  12,  11,   9,   8,  10];
zz = [ 0, 100, 200, 300, 400, 500, 600, 700];

skin(
     for (i = [0:7])
         [[0, 0], [-dh[i], dv[i]], [-dh[i] + 2, dv[i]], [0, wi + 2*th]],
     z = zz, slices = 8);



_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Syntax error

Ronaldo
The for should be between square brackets, no?

Em sáb., 5 de jun. de 2021 às 18:49, jon <[hidden email]> escreveu:
What am I missing here, please?  I get red dots on line 10 (the "zz"
line) and a syntax error on line 13 (the "for" line)



include <BOSL2/std.scad>

th = 2;
eps = 0.01;
ht = 8;
wi = 4;

dh = [15,  15,  13,  11,   9,   9,   8,   9];
dv = [21,  21,  14,  12,  11,   9,   8,  10];
zz = [ 0, 100, 200, 300, 400, 500, 600, 700];

skin(
     for (i = [0:7])
         [[0, 0], [-dh[i], dv[i]], [-dh[i] + 2, dv[i]], [0, wi + 2*th]],
     z = zz, slices = 8);



_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Syntax error

jon_bondy

You are correct!  Thanks so much!

So many square brackets!


On 6/5/2021 2:00 PM, Ronaldo Persiano wrote:
The for should be between square brackets, no?

Em sáb., 5 de jun. de 2021 às 18:49, jon <[hidden email]> escreveu:
What am I missing here, please?  I get red dots on line 10 (the "zz"
line) and a syntax error on line 13 (the "for" line)



include <BOSL2/std.scad>

th = 2;
eps = 0.01;
ht = 8;
wi = 4;

dh = [15,  15,  13,  11,   9,   9,   8,   9];
dv = [21,  21,  14,  12,  11,   9,   8,  10];
zz = [ 0, 100, 200, 300, 400, 500, 600, 700];

skin(
     for (i = [0:7])
         [[0, 0], [-dh[i], dv[i]], [-dh[i] + 2, dv[i]], [0, wi + 2*th]],
     z = zz, slices = 8);



_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]

_______________________________________________
OpenSCAD mailing list
To unsubscribe send an email to [hidden email]