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

JordanBrown
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:

https://github.com/openscad/openscad/commit/6adcea6de11bcecc028e447e0f6709171b7b506f#diff-83af1b8baf4918f119e4056120143aac


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]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org