| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0006866 | VTK | (No Category) | public | 2008-04-22 00:54 | 2013-04-05 20:24 | ||||
| Reporter | amaclean | ||||||||
| Assigned To | David Partyka | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0006866: There is a copy/pase error in vtkParticlereader.cxx | ||||||||
| Description | In int vtkParticleReader::ProduceOutputFromBinaryFileDouble(vtkInformationVector *outputVector) starting at line 640 the code should be changed to read: vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->SetDataTypeToDouble(); points->SetNumberOfPoints(length); vtkSmartPointer<vtkDoubleArray> array = vtkSmartPointer<vtkDoubleArray>::New(); array->SetName("Scalar"); vtkSmartPointer<vtkCellArray> verts = vtkSmartPointer<vtkCellArray>::New(); // Each cell will have 1000 points. Leave a little extra space just in case. // We break up the cell this way so that the render will check for aborts // at a reasonable rate. verts->Allocate((int)((double)length * 1.002)); // Keep adding cells until we run out of points. The issue is that vtkPoints are float by default so there is a loss of precision in reading in doubles and these being converted to floats. | ||||||||
| Tags | No tags attached. | ||||||||
| Project | |||||||||
| Type | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0025964) David Partyka (developer) 2011-03-30 08:42 |
Applied patch provided by Glen Faken http://review.source.kitware.com/#change,1285 [^] Thanks to you both for the fix. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2008-04-22 00:54 | amaclean | New Issue | |
| 2011-03-30 08:41 | David Partyka | Assigned To | => David Partyka |
| 2011-03-30 08:41 | David Partyka | Status | backlog => tabled |
| 2011-03-30 08:42 | David Partyka | Note Added: 0025964 | |
| 2011-03-30 08:42 | David Partyka | Status | tabled => @80@ |
| 2011-03-30 08:42 | David Partyka | Resolution | open => fixed |
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
| 2013-04-05 20:24 | Berk Geveci | Status | customer review => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |