From: ouv Date: Mon, 10 Oct 2005 08:28:06 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: BR-D5-38-2003_D2005-12-10~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c9bde2b20a4423f56c97664fa295804a8990fa6;p=modules%2Fvisu.git *** empty log message *** --- diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx index 8ab150a4..2f6b4e49 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx @@ -771,7 +771,7 @@ void VISU_OpenGLPointSpriteMapper::DrawPoints(int idx, aVertex[i].vy = p->GetPoint( pts[0] )[1]; aVertex[i].vz = p->GetPoint( pts[0] )[2]; - if( colors ) + if( colors && this->PointSpriteResults ) { unsigned char *col = colors->GetPointer(pts[0]<< 2); aVertex[i].r = ( ( int )col[0] ) / 255.0; @@ -855,6 +855,7 @@ int VISU_OpenGLPointSpriteMapper::Draw(vtkRenderer *aren, vtkActor *act) // are they cell or point scalars if ( this->Colors ) { + cout << 111 << endl; colors = this->Colors; if ( (this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_DATA || this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_FIELD_DATA || @@ -864,6 +865,8 @@ int VISU_OpenGLPointSpriteMapper::Draw(vtkRenderer *aren, vtkActor *act) cellScalars = 1; } } + else + cout << 222 << endl; unsigned long idx = 0; if (colors)