ERR: Reported by John Tourtellott <johnt@raytechcomputing.com> At 09:36 AM 10/31/00 -0500, John Tourtellott wrote: I believe that the vtkOBJReader class never reads vertex normals from an input file, due to a bug in vtkOBJReader.cxx at lines 208-209:
ERR: Reported by John Tourtellott <johnt@raytechcomputing.com>
At 09:36 AM 10/31/00 -0500, John Tourtellott wrote:
I believe that the vtkOBJReader class never reads vertex normals from an input file, due to a bug in vtkOBJReader.cxx at lines 208-209:

    208   blank = (char *) strchr (line, (int) ' ');
    209   slash = (char *) strchr (line, (int) '/');
    210   if (blank && slash && (slash < blank))
    211      {

This code is in the middle of parsing a vertex/texture/normal string for the next  index into the array of normals. Because the current code parses from the beginning of the 'line' variable, the resulting 'blank' value is always less than the 'slash' value and, as a result, the subsequent if statement (line 210) always evaluates to false. Instead, the parsing should be done with respect to the current pointer position, i.e., the correct code is:

    208   blank = (char *) strchr (ptr, (int) ' ');
                                   ^^^
    209   slash = (char *) strchr (ptr, (int) '/');
                                   ^^^

naucoin/VTKSlicerWidgets,naucoin/VTKSlicerWidgets,berendkleinhaneveld/VTK,spthaolt/VTK,berendkleinhaneveld/VTK,jmerkow/VTK,gram526/VTK,aashish24/VTK-old,naucoin/VTKSlicerWidgets,demarle/VTK,berendkleinhaneveld/VTK,msmolens/VTK,arnaudgelas/VTK,aashish24/VTK-old,jmerkow/VTK,hendradarwin/VTK,naucoin/VTKSlicerWidgets,mspark93/VTK,msmolens/VTK,ashray/VTK-EVM,Wuteyan/VTK,candy7393/VTK,jmerkow/VTK,sankhesh/VTK,biddisco/VTK,collects/VTK,daviddoria/PointGraphsPhase1,demarle/VTK,collects/VTK,mspark93/VTK,spthaolt/VTK,arnaudgelas/VTK,hendradarwin/VTK,arnaudgelas/VTK,arnaudgelas/VTK,cjh1/VTK,ashray/VTK-EVM,biddisco/VTK,demarle/VTK,SimVascular/VTK,gram526/VTK,demarle/VTK,daviddoria/PointGraphsPhase1,naucoin/VTKSlicerWidgets,aashish24/VTK-old,mspark93/VTK,ashray/VTK-EVM,daviddoria/PointGraphsPhase1,sumedhasingla/VTK,Wuteyan/VTK,spthaolt/VTK,biddisco/VTK,sumedhasingla/VTK,berendkleinhaneveld/VTK,candy7393/VTK,jmerkow/VTK,hendradarwin/VTK,sumedhasingla/VTK,arnaudgelas/VTK,sgh/vtk,biddisco/VTK,Wuteyan/VTK,hendradarwin/VTK,sgh/vtk,Wuteyan/VTK,cjh1/VTK,SimVascular/VTK,jeffbaumes/jeffbaumes-vtk,jeffbaumes/jeffbaumes-vtk,sankhesh/VTK,cjh1/VTK,sgh/vtk,jeffbaumes/jeffbaumes-vtk,hendradarwin/VTK,sankhesh/VTK,collects/VTK,johnkit/vtk-dev,daviddoria/PointGraphsPhase1,johnkit/vtk-dev,hendradarwin/VTK,ashray/VTK-EVM,mspark93/VTK,keithroe/vtkoptix,daviddoria/PointGraphsPhase1,Wuteyan/VTK,jeffbaumes/jeffbaumes-vtk,msmolens/VTK,SimVascular/VTK,johnkit/vtk-dev,cjh1/VTK,gram526/VTK,sgh/vtk,gram526/VTK,hendradarwin/VTK,keithroe/vtkoptix,arnaudgelas/VTK,biddisco/VTK,sumedhasingla/VTK,msmolens/VTK,spthaolt/VTK,SimVascular/VTK,msmolens/VTK,sumedhasingla/VTK,berendkleinhaneveld/VTK,keithroe/vtkoptix,sankhesh/VTK,spthaolt/VTK,candy7393/VTK,jeffbaumes/jeffbaumes-vtk,keithroe/vtkoptix,gram526/VTK,sankhesh/VTK,gram526/VTK,collects/VTK,sumedhasingla/VTK,spthaolt/VTK,msmolens/VTK,msmolens/VTK,candy7393/VTK,demarle/VTK,sumedhasingla/VTK,demarle/VTK,johnkit/vtk-dev,ashray/VTK-EVM,SimVascular/VTK,mspark93/VTK,daviddoria/PointGraphsPhase1,SimVascular/VTK,jmerkow/VTK,cjh1/VTK,mspark93/VTK,ashray/VTK-EVM,aashish24/VTK-old,johnkit/vtk-dev,demarle/VTK,aashish24/VTK-old,SimVascular/VTK,mspark93/VTK,keithroe/vtkoptix,gram526/VTK,keithroe/vtkoptix,sgh/vtk,msmolens/VTK,demarle/VTK,ashray/VTK-EVM,sankhesh/VTK,collects/VTK,jmerkow/VTK,sankhesh/VTK,mspark93/VTK,johnkit/vtk-dev,collects/VTK,ashray/VTK-EVM,Wuteyan/VTK,keithroe/vtkoptix,candy7393/VTK,jeffbaumes/jeffbaumes-vtk,cjh1/VTK,sankhesh/VTK,sgh/vtk,keithroe/vtkoptix,naucoin/VTKSlicerWidgets,gram526/VTK,sumedhasingla/VTK,berendkleinhaneveld/VTK,Wuteyan/VTK,jmerkow/VTK,spthaolt/VTK,candy7393/VTK,berendkleinhaneveld/VTK,biddisco/VTK,aashish24/VTK-old,SimVascular/VTK,candy7393/VTK,biddisco/VTK,johnkit/vtk-dev,candy7393/VTK,jmerkow/VTK