mirror() with no arguments yields a warning

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

mirror() with no arguments yields a warning

In 2015.03, mirror() with no arguments defaulted to [1,0,0], a left-right mirror.  In 2019.01 and later, it yields a warning.  (And, like some, I'm a "warnings are fatal" person.)
WARNING: Unable to convert mirror(undef) parameter to a vec3 or vec2 of numbers, in file ../../Users/Jordan/SkyDrive/Documents/3D Printing, line 1

It's this commit:


Looks like it should compare against undefined, like cube() does.

At least assuming that it's believed that [1,0,0] is a useful default.  I'd say it is, but it doesn't seem to ever have been documented.

OpenSCAD mailing list
[hidden email]