]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSphereList.cxx
bbstdReadColumnsDouble adds an extra line at the end of the read file.
[bbtk.git] / packages / vtk / src / bbvtkSphereList.cxx
index 8d5cfe7069f7604a2069db6f0957d108a9daa25a..50889bd9dc746a47fba9e79a37a34de6f5f8c0c8 100644 (file)
@@ -82,8 +82,7 @@ void SphereList::Process()
                         std::cout << "CM SphereList::Process i=" <<  i  << " bbGetInputlstPointZ()[i]=" << bbGetInputlstPointZ()[i] << std::endl;
                       }
                     // If the vector Y or respectively the vector Z has a different size from the vector X, the position value py or respectively pz is set to 0.
-                    // Stops at iMax - 1 because of a bug of the box stdReadColumnsDouble creating an extra line at the end of the file.
-                    for ( int i=iMin ; i<iMax-1; i=i+1 )
+                    for ( int i=iMin ; i<iMax; i=i+1 )
                     {
                        px = bbGetInputlstPointX()[i]*spc[0];
                        if (bbGetInputlstPointY().size() == bbGetInputlstPointX().size() )