[OpenSCAD] multmatrix expands the input matrix to 4x4?
nop.head at gmail.com
Wed Jul 3 17:38:28 EDT 2019
I think it should warn if you don't pass a vector of vectors, but other
than that, what is the point in tightening up the size requirements?
On Wed, 3 Jul 2019 at 22:24, adrianv <avm4 at cornell.edu> wrote:
> This sounds like pretty intentional behavior. Is there a prevailing (or at
> least common) belief that it's wrong and needs to change?
> nophead wrote
> > The code
> > <
> > creates
> > a 4x4 identity matrix and then for each element it looks to see if the
> > corresponding element exists in the passed matrix and if it does it
> > overwrites that entry.
> > So basically it tries as hard as it can to convert any shape matrix to
> > fit.
> > Any element it can't find is left as the value from the identity. If the
> > argument isn't even a matrix it silently uses the identity.
> Sent from: http://forum.openscad.org/
> OpenSCAD mailing list
> Discuss at lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Discuss