Skip to content

Commit 2e9c3fc

Browse files
committed
Removed DIMENSION
1 parent 3f4653e commit 2e9c3fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Src/PointStream.inl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ void ASCIIOrientedPointStream< Real >::reset( void ) { fseek( _fp , SEEK_SET , 0
6565
template< class Real >
6666
bool 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
244244
template< class Real , class Data >
245245
bool 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

Comments
 (0)