discuss@lists.openscad.org

OpenSCAD general discussion

View all threads

Syntax error

J
jon
Sat, Jun 5, 2021 5:48 PM

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

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);
RP
Ronaldo Persiano
Sat, Jun 5, 2021 6:00 PM

The for should be between square brackets, no?

Em sáb., 5 de jun. de 2021 às 18:49, jon jon@jonbondy.com 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 discuss-leave@lists.openscad.org

The for should be between square brackets, no? Em sáb., 5 de jun. de 2021 às 18:49, jon <jon@jonbondy.com> 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 discuss-leave@lists.openscad.org >
J
jon
Sun, Jun 6, 2021 11:15 AM

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 <jon@jonbondy.com
mailto:jon@jonbondy.com> 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 discuss-leave@lists.openscad.org
 <mailto:discuss-leave@lists.openscad.org>

OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

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 <jon@jonbondy.com > <mailto:jon@jonbondy.com>> 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 discuss-leave@lists.openscad.org > <mailto:discuss-leave@lists.openscad.org> > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org