anAppendPolyData->Delete();
//Calculate values for building of table
vtkMath::Cross(aDir[0],aDir[1],myDirLn);
- vtkFloatingPointType aTmpDir[3];
- for (int i=0; i<3 ; i++)
- if(myDirLn[i]<0)
- aTmpDir[i] = (-1)*myDirLn[i];
- else
- aTmpDir[i] = myDirLn[i];
+ for (int i=0; i<3 ; i++) {
+ myRealDirLn[i] = myDirLn[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);
- GetBoundProject(myBoundPrjLn, aBaseBounds, aTmpDir);
- VISU::Mul(aTmpDir,myBoundPrjLn[0],myBasePnt);
CorrectPnt(myBasePnt,aBaseBounds);
VISU_ScalarMapPL::Update();
return myDirLn;
}
+ const vtkFloatingPointType*
+ GetRealDirLn()
+ {
+ return myRealDirLn;
+ }
+
const vtkFloatingPointType*
GetBoundPrjLn()
{
protected:
vtkFloatingPointType myDirLn[3];
+ vtkFloatingPointType myRealDirLn[3];
vtkFloatingPointType myBoundPrjLn[3];
vtkFloatingPointType myBasePnt[3];
vtkFloatingPointType myPosition;
void VisuGUI_CutLinesDlg::updateGlyphs(bool update){
if (myPreviewActorGlyphs == 0 ) return;
- const vtkFloatingPointType *aDirLn = myCutLines->GetCutLinesPL()->GetDirLn();
+ const vtkFloatingPointType *aDirLn = myCutLines->GetCutLinesPL()->GetRealDirLn();
const vtkFloatingPointType *aBasePnt = myCutLines->GetCutLinesPL()->GetBasePnt();
vtkFloatingPointType aSecondPnt[3];
vtkFloatingPointType aBoundCenter[3];