From e2bd329ab84b8e36a9ef0e5658949c6d02b04e0f Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 23 Sep 2005 08:10:08 +0000 Subject: [PATCH] To fix a regression --- src/VISU_I/VISU_GaussPoints_i.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;) -- 2.39.2