View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000797 | VTK | (No Category) | public | 2004-04-26 11:43 | 2004-06-03 09:35 | ||||
Reporter | maik | ||||||||
Assigned To | Brad King | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000797: Data writer double precision problem | ||||||||
Description | The vtk data writers always use the default precision of 6, even when writing out 64 bit data values. I would suggest bumping up the precision to 10 or 11 when writing out 64 bit data values. Otherwise, I don't think there's any real point to having 64 bit data arrays. It think that the fix is as simple as: this->Stream << setprecision(11) << value; where value comes from a 64 bit data array like vtkLongArray or vtkDoubleArray. | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | vtkDataWriter.cxx.diff [^] (468 bytes) 1969-12-31 19:00 [Show Content]
vtkXMLWriter.cxx.diff [^] (1,412 bytes) 1969-12-31 19:00 [Show Content] | ||||||||
Relationships | |
Relationships |
Notes | |
(0000993) maik (reporter) 2004-04-28 12:41 |
I've found the problem and I think the patches I just submitted should fix the precision problem without breaking anything else. It don't think it works for XML binary data though. |
(0001157) Brad King (developer) 2004-06-01 11:03 |
Fixed in CVS version: Checking in vtkXMLWriter.cxx; /cvsroot/VTK/VTK/IO/vtkXMLWriter.cxx,v <-- vtkXMLWriter.cxx new revision: 1.33; previous revision: 1.32 done |
(0001158) Brad King (developer) 2004-06-01 11:12 |
Separately fixed vtkDataWriter.cxx: Checking in vtkDataWriter.cxx; /cvsroot/VTK/VTK/IO/vtkDataWriter.cxx,v <-- vtkDataWriter.cxx new revision: 1.106; previous revision: 1.105 done In this version, the format specifiers simply needed to be updated to be aware of the full size of the input type to print. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |