[OpenSCAD] Matrix inversion

Lucas Vinicius Hartmann lucas.hartmann at gmail.com
Sat Jun 11 21:07:17 EDT 2016


You are absolutely right. Thanks!

Somehow I ended up swapping rows and columns there... Fix commited to
github.

--
Lucas Vinicius Hartmann

Dizem que se você rodar o CD do Windows ao contrário ele mostra uma
mensagem demoníaca... Mas isso nem é o pior, se você rodar ele normal ele
instala o Windows!

2016-06-11 21:14 GMT-03:00 Parkinbot <rudolf at parkinbot.com>:

> Ups I pressed the wrong button ...
>
> I'd say this works better:
>
>
> > function m4inv_solve(i,mx) =
> >                !m4inv_zero(mx[i][i  ]) ? m4inv_solve2(i,
>      mx
> > ) :
> >       i+1<4 && !m4inv_zero(mx[i+1][i]) ? m4inv_solve2(i,
> > m4inv_rowswap(i,i+1,mx)) :
> >       i+2<4 && !m4inv_zero(mx[i+2][i]) ? m4inv_solve2(i,
> > m4inv_rowswap(i,i+2,mx)) :
> >       i+3<4 && !m4inv_zero(mx[i+3][i]) ? m4inv_solve2(i,
> > m4inv_rowswap(i,i+3,mx)) :
> >       m4identity(); // Singular matrix, reset to identity
>
>
>
>
>
> --
> View this message in context:
> http://forum.openscad.org/Matrix-inversion-tp17647p17649.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20160611/9323011a/attachment-0002.html>


More information about the Discuss mailing list