MantisBT - VTK | |||||
| View Issue Details | |||||
| 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 | ||||
| Project | |||||
| Type | |||||
| 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. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||