Calculate indices before passing them to Insert() methods
Calculate indices before passing them to Insert() methods

Change-Id: Ib5b9ded9c27aa59d0d96d1ff54699e2842206bf1

hendradarwin/VTK,hendradarwin/VTK,johnkit/vtk-dev,keithroe/vtkoptix,cjh1/VTK,collects/VTK,sumedhasingla/VTK,candy7393/VTK,demarle/VTK,biddisco/VTK,sankhesh/VTK,spthaolt/VTK,collects/VTK,biddisco/VTK,candy7393/VTK,msmolens/VTK,berendkleinhaneveld/VTK,keithroe/vtkoptix,msmolens/VTK,SimVascular/VTK,mspark93/VTK,SimVascular/VTK,msmolens/VTK,collects/VTK,msmolens/VTK,johnkit/vtk-dev,gram526/VTK,keithroe/vtkoptix,hendradarwin/VTK,ashray/VTK-EVM,spthaolt/VTK,ashray/VTK-EVM,demarle/VTK,spthaolt/VTK,berendkleinhaneveld/VTK,gram526/VTK,gram526/VTK,sankhesh/VTK,SimVascular/VTK,sankhesh/VTK,aashish24/VTK-old,mspark93/VTK,candy7393/VTK,candy7393/VTK,aashish24/VTK-old,demarle/VTK,sumedhasingla/VTK,sankhesh/VTK,aashish24/VTK-old,mspark93/VTK,jmerkow/VTK,jmerkow/VTK,cjh1/VTK,biddisco/VTK,collects/VTK,msmolens/VTK,msmolens/VTK,aashish24/VTK-old,mspark93/VTK,SimVascular/VTK,spthaolt/VTK,demarle/VTK,hendradarwin/VTK,gram526/VTK,cjh1/VTK,gram526/VTK,berendkleinhaneveld/VTK,SimVascular/VTK,berendkleinhaneveld/VTK,ashray/VTK-EVM,mspark93/VTK,biddisco/VTK,SimVascular/VTK,collects/VTK,ashray/VTK-EVM,berendkleinhaneveld/VTK,cjh1/VTK,keithroe/vtkoptix,mspark93/VTK,cjh1/VTK,johnkit/vtk-dev,ashray/VTK-EVM,sumedhasingla/VTK,johnkit/vtk-dev,keithroe/vtkoptix,candy7393/VTK,demarle/VTK,biddisco/VTK,SimVascular/VTK,collects/VTK,sumedhasingla/VTK,johnkit/vtk-dev,SimVascular/VTK,ashray/VTK-EVM,cjh1/VTK,biddisco/VTK,sankhesh/VTK,sankhesh/VTK,sankhesh/VTK,sumedhasingla/VTK,ashray/VTK-EVM,ashray/VTK-EVM,jmerkow/VTK,aashish24/VTK-old,msmolens/VTK,mspark93/VTK,jmerkow/VTK,sumedhasingla/VTK,jmerkow/VTK,berendkleinhaneveld/VTK,candy7393/VTK,candy7393/VTK,spthaolt/VTK,mspark93/VTK,aashish24/VTK-old,keithroe/vtkoptix,johnkit/vtk-dev,gram526/VTK,spthaolt/VTK,jmerkow/VTK,sumedhasingla/VTK,msmolens/VTK,sumedhasingla/VTK,spthaolt/VTK,johnkit/vtk-dev,hendradarwin/VTK,demarle/VTK,demarle/VTK,gram526/VTK,biddisco/VTK,hendradarwin/VTK,berendkleinhaneveld/VTK,demarle/VTK,keithroe/vtkoptix,hendradarwin/VTK,sankhesh/VTK,jmerkow/VTK,gram526/VTK,candy7393/VTK,jmerkow/VTK,keithroe/vtkoptix