[vtkusers] matrix output VERY hard to read

David Doria daviddoria+vtk at gmail.com
Fri Sep 18 13:42:39 EDT 2009


I will often output a matrix that looks like this:

1 -4.12726e-10 3.91703e-10 5.2556e-12
4.12726e-10 1 7.75407e-10 -7.62694e-10
-3.91703e-10 -7.75407e-10 1 7.57439e-10
0 0 0 1

Can you tell what it is?! It's a 4x4 identity matrix! Clearly there is
nothing that can be done about the floating point precision, but maybe a few
setw()'s can be added or something to clean this up so at least it appears
to have a 4x4 structure - and the widths of each column could be the same no
matter how many significant digits that entry contains.

Is this feature request-worthy?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090918/27f126ee/attachment.htm>


More information about the vtkusers mailing list