@@ -65,8 +65,8 @@ void ASCIIOrientedPointStream< Real >::reset( void ) { fseek( _fp , SEEK_SET , 0
6565template < class Real >
6666bool ASCIIOrientedPointStream< Real >::nextPoint( OrientedPoint3D< Real >& p )
6767{
68- float c[2 *DIMENSION ];
69- if ( fscanf ( _fp , " %f %f %f %f %f %f " , &c[0 ] , &c[1 ] , &c[2 ] , &c[3 ] , &c[4 ] , &c[5 ] )!=2 *DIMENSION ) return false ;
68+ float c[2 *3 ];
69+ if ( fscanf ( _fp , " %f %f %f %f %f %f " , &c[0 ] , &c[1 ] , &c[2 ] , &c[3 ] , &c[4 ] , &c[5 ] )!=2 *3 ) return false ;
7070 p.p [0 ] = c[0 ] , p.p [1 ] = c[1 ] , p.p [2 ] = c[2 ];
7171 p.n [0 ] = c[3 ] , p.n [1 ] = c[4 ] , p.n [2 ] = c[5 ];
7272 return true ;
@@ -244,8 +244,8 @@ void ASCIIOrientedPointStreamWithData< Real , Data >::reset( void ) { fseek( _fp
244244template < class Real , class Data >
245245bool ASCIIOrientedPointStreamWithData< Real , Data >::nextPoint( OrientedPoint3D< Real >& p , Data& d )
246246{
247- float c[2 *DIMENSION ];
248- if ( fscanf ( _fp , " %f %f %f %f %f %f " , &c[0 ] , &c[1 ] , &c[2 ] , &c[3 ] , &c[4 ] , &c[5 ] )!=2 *DIMENSION ) return false ;
247+ float c[2 *3 ];
248+ if ( fscanf ( _fp , " %f %f %f %f %f %f " , &c[0 ] , &c[1 ] , &c[2 ] , &c[3 ] , &c[4 ] , &c[5 ] )!=2 *3 ) return false ;
249249 p.p [0 ] = c[0 ] , p.p [1 ] = c[1 ] , p.p [2 ] = c[2 ];
250250 p.n [0 ] = c[3 ] , p.n [1 ] = c[4 ] , p.n [2 ] = c[5 ];
251251 d = _readData ( _fp );
0 commit comments