[OpenSCAD] "Too many unnamed arguments "

Jordan Brown openscad at jordan.maileater.net
Tue May 14 11:52:59 EDT 2019


On 5/14/2019 7:44 AM, A. Craig West wrote:
> Put square brackets around the arguments in translate

Yes, but a little more precisely:  translate takes a single argument, a
vector containing two or three numbers.  What the original poster passed
was three individual numbers, not a vector.

(Note that a vector is what some languages call an array.)

> On Tue, 14 May 2019, 10:16 lar3ry, <lar3ry at sasktel.net
> <mailto:lar3ry at sasktel.net>> wrote:
>
>         translate(0,0,-.001)
>           cylinder(h=2.1,d=bottle_dia + fudgefac);
>     [...]
>     Compiling design (CSG Tree generation)...
>     WARNING: Too many unnamed arguments supplied, in file OpenSCAD, line 9
>     TRACE: called by 'translate', in file OpenSCAD, line 9.
>     TRACE: called by 'difference', in file OpenSCAD, line 7.
>     TRACE: called by 'test_dia', in file OpenSCAD, line 4.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190514/6fef508f/attachment.html>


More information about the Discuss mailing list