discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

mirror() with no arguments yields a warning

JB
Jordan Brown
Mon, Mar 16, 2020 5:52 PM

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.

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.