From: apo Date: Fri, 23 Sep 2005 08:10:08 +0000 (+0000) Subject: To fix a regression X-Git-Tag: BR-D5-38-2003_D2005-12-10~147 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2bd329ab84b8e36a9ef0e5658949c6d02b04e0f;p=modules%2Fvisu.git To fix a regression --- diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index c2b34a82..389b38ed 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -249,7 +249,6 @@ VISU::GaussPoints_i try{ VISU::Prs3d_i::CreateActor(anActor,theIO); anActor->SetRepresentation(VTK_POINTS); - anActor->SetVTKMapping(true); UpdateActor(anActor); }catch(...){ anActor->Delete(); @@ -339,9 +338,9 @@ VISU::GaussPoints_i unsigned char* anAlphaDataPtr = (unsigned char*)anAlphaImageData->GetScalarPointer(); unsigned char *aCompositeDataPtr = (unsigned char * )aCompositeImageData->GetScalarPointer(); - int aCompositeSize = aMainImageSize[0] * aMainImageSize[1]; int aNbMainComponents = aMainImageData->GetNumberOfScalarComponents(); int aNbAlphaComponents = anAlphaImageData->GetNumberOfScalarComponents(); + int aCompositeSize = aMainImageSize[0] * aMainImageSize[1] * aNbCompositeComponents; int aMainId = 0, anAlphaId = 0, aCompositeId = 0; for(; aCompositeId < aCompositeSize;)