<div class="gmail_quote">On Tue, Oct 13, 2009 at 9:34 AM, Jeff Baumes <span dir="ltr">&lt;<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I agree that this would likely be a good change. Could you add a<br>
little more clarity to this? What class(es)/method(s) are you<br>
proposing to change?<br>
<br>
Jeff<br>
<div><div></div><div class="h5"></div></div></blockquote><div><br>Jeff,<br><br>I think just vtkMatrix4x4::PrintSelf would need to be changed? Maybe something more like this:<br><a href="http://www.rpi.edu/~doriad/VTK_List/MatrixOutput/">http://www.rpi.edu/~doriad/VTK_List/MatrixOutput/</a><br>
<br>It&#39;s tough to get the formatting VERY nice because of variable width character fonts, but there is still quite an improvement (in my opinion). Here are two examples:<br><br>Existing method, hard matrix:<br>    1 -4.12726e-10 3.91703e-10 5.2556e-12 <br>
    4.12726e-10 1 7.75407e-10 -7.62694e-10 <br>    -3.91703e-10 -7.75407e-10 1 7.57439e-10 <br>    0 0 0 1 <br><br>Proposed method, hard matrix:<br>   1.000  -0.000   0.000   0.000<br>   0.000   1.000   0.000  -0.000<br>  -0.000  -0.000   1.000   0.000<br>
   0.000   0.000   0.000   1.000<br><br><br>Existing method, easy matrix:<br>    1 2 3 4 <br>    5 6 7 8 <br>    9 10 11 12 <br>    13 14 15 16 <br><br>Proposed method, easy matrix:<br>   1.000   2.000   3.000   4.000<br>
   5.000   6.000   7.000   8.000<br>   9.000  10.000  11.000  12.000<br>  13.000  14.000  15.000  16.000<br><br>As you can see there is a HUGE difference in the hard case, while the easy case remains ok. The precision of the decimal outputs is clearly a user preference sort of thing - maybe we could even make some options for the formatting? That may be hard to do in the PrintSelf sort of framework though..<br>
<br>Thoughts?<br><br clear="all">Thanks,<br><br>David <br></div></div>