There is a copy/pase error in vtkParticlereader.cxx
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In int vtkParticleReader::ProduceOutputFromBinaryFileDouble(vtkInformationVector *outputVector)
starting at line 640 the code should be changed to read:
vtkSmartPointer points = vtkSmartPointer::New();
points->SetDataTypeToDouble();
points->SetNumberOfPoints(length);
vtkSmartPointer array = vtkSmartPointer::New();
array->SetName("Scalar");
vtkSmartPointer verts = vtkSmartPointer::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.