View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000797VTK(No Category)public2004-04-26 11:432004-06-03 09:35
Reportermaik 
Assigned ToBrad King 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000797: Data writer double precision problem
DescriptionThe 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.
TagsNo tags attached.
Project
Type
Attached Filesdiff file icon vtkDataWriter.cxx.diff [^] (468 bytes) 1969-12-31 19:00 [Show Content]
diff file icon vtkXMLWriter.cxx.diff [^] (1,412 bytes) 1969-12-31 19:00 [Show Content]

 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.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team