using the index from the input file, yet to verify the results with the vtk & naive methods