anAppendPolyData->Delete();
//Calculate values for building of table
vtkMath::Cross(aDir[0],aDir[1],myDirLn);
- for (int i=0; i<3 ; i++) if(myDirLn[i]<0) myDirLn[i] = (-1)*myDirLn[i];//enk:: correction of bug Bug PAL10401
- GetBoundProject(myBoundPrjLn, aBaseBounds, myDirLn);
- VISU::Mul(myDirLn,myBoundPrjLn[0],myBasePnt);
+ vtkFloatingPointType aTmpDir[3];
+ for (int i=0; i<3 ; i++)
+ if(myDirLn[i]<0)
+ aTmpDir[i] = (-1)*myDirLn[i];
+ else
+ aTmpDir[i] = myDirLn[i];
+
+ GetBoundProject(myBoundPrjLn, aBaseBounds, aTmpDir);
+ VISU::Mul(aTmpDir,myBoundPrjLn[0],myBasePnt);
CorrectPnt(myBasePnt,aBaseBounds);
VISU_ScalarMapPL::Update();
aPlaneMapper->SetInput(aPolyData->GetOutput());
aPlaneMapper->ScalarVisibilityOff();
- myPreviewActorGlyphs = myPreviewActorGlyphs = SALOME_Actor::New();
+ myPreviewActorGlyphs = SALOME_Actor::New();
myPreviewActorGlyphs->PickableOff();
updateGlyphs(false);
source->SetCenter(aBoundCenter);
source->SetGlyphTypeToArrow();
- aPoints->InsertNextPoint(aBasePnt);
+ aPoints->InsertNextPoint(aBoundCenter);
profile->SetPoints(aPoints);
aFloatArray->SetNumberOfComponents(3);