Automatic matrix corrections


Re: Automatic matrix corrections
#2
> Or could I just put a '1' in the middle row's
> middle pos?, but yet again how to do a fool proof
> correction.

Without knowing the intention of the matrix you can't!

Firstly I think you should always assume that what is already in a column belongs there.

However, what you do know is that no column should contain only zeroes. So if one does a simple fix would be to replace it by the cross product of the other two columns renormalised to 1.

That way it will be orthogonal to the others columns but not large. If, as in the examples you give, the parts are flat and the third dimension is ignored then this will work perfectly.

This solution works for all the examples you give eg.
Code:
M=[-2.84 0 -2.84 0 0 0 2.84 0 -2.84]
=[-2.84 0 -2.84
      0 0     0
   2.84 0 -2.84]

c1=[-2.84 0 2.84]
c2=[0 0 0] !!!! Needs fixing
c3=[-2.84 0 -2.84]

x=cross(c1,c3)=[0 16.13 0];
c2p=[0 1 0]


> Any help would be appreciated.
>
>
> Or maybe someone could just fix all the part files
> (just kidding Big Grin)

I think this would be the better solution.

Tim
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: Automatic matrix corrections - by Tim Gould - 2011-11-25, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)