]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid the following VTK error after exit from "segmentation cursor mode":
authorapo <apo@opencascade.com>
Tue, 26 Dec 2006 12:31:23 +0000 (12:31 +0000)
committerapo <apo@opencascade.com>
Tue, 26 Dec 2006 12:31:23 +0000 (12:31 +0000)
ERROR: In /data/apo/VTK-4.2.6/Graphics/vtkCellDataToPointData.cxx, line 59
vtkCellDataToPointData (0xa9b49e0): No input point data!

src/PIPELINE/VISU_GaussPointsPL.cxx

index 02f002c22871b40fcf856c68160285edb2bf26f3..0b6985e55208a5492287f242e4f8c05eee5c37e9 100644 (file)
@@ -81,7 +81,7 @@ VISU_GaussPointsPL
   mySphereSource->SetPhiResolution( 8 );
   myGlyph->SetSource( mySphereSource->GetOutput() );
 
-  for(int i = 0; i < 2; i++)
+  for(int i = 0; i < 3; i++)
     myPassFilter.push_back(VTKViewer_PassThroughFilter::New());
 }
 
@@ -109,7 +109,7 @@ VISU_GaussPointsPL
 
   mySphereSource->Delete();
 
-  for(int i = 0; i < 2; i++)
+  for(int i = 0; i < 3; i++)
     myPassFilter[i]->Delete();
 }
 
@@ -236,14 +236,16 @@ VISU_GaussPointsPL
     SetScale(0.0);
 
   // Deformed Shape
-  myPassFilter[0]->SetInput(myCellDataToPointData->GetUnstructuredGridOutput());
+  myPassFilter[0]->SetInput(myFieldTransform->GetUnstructuredGridOutput());
 
-  myGeomFilter->SetInput( myPassFilter[0]->GetOutput() );
+  myPassFilter[1]->SetInput(myPassFilter[0]->GetOutput());
+
+  myGeomFilter->SetInput( myPassFilter[1]->GetOutput() );
 
   // Geometrical Sphere
-  myPassFilter[1]->SetInput(myGeomFilter->GetOutput());
+  myPassFilter[2]->SetInput(myGeomFilter->GetOutput());
 
-  myPSMapper->SetInput( myPassFilter[1]->GetPolyDataOutput() );
+  myPSMapper->SetInput( myPassFilter[2]->GetPolyDataOutput() );
 }
 
 //----------------------------------------------------------------------------
@@ -411,11 +413,12 @@ VISU_GaussPointsPL
 
   if( theIsDeformed )
   {
+    myCellDataToPointData->SetInput( myPassFilter[0]->GetUnstructuredGridOutput() );
     myWarpVector->SetInput( myCellDataToPointData->GetUnstructuredGridOutput() );
-    myPassFilter[0]->SetInput(myWarpVector->GetOutput());
+    myPassFilter[1]->SetInput(myWarpVector->GetOutput());
   }
   else
-    myPassFilter[0]->SetInput(myCellDataToPointData->GetUnstructuredGridOutput());
+    myPassFilter[1]->SetInput(myPassFilter[0]->GetOutput());
 
   myIsDeformed = theIsDeformed;
 }
@@ -475,10 +478,10 @@ VISU_GaussPointsPL
   if( thePrimitiveType == VISU_OpenGLPointSpriteMapper::GeomSphere )
   {
     myGlyph->SetInput( myGeomFilter->GetOutput() );
-    myPassFilter[1]->SetInput(myGlyph->GetOutput());
+    myPassFilter[2]->SetInput(myGlyph->GetOutput());
   }
   else
-    myPassFilter[1]->SetInput(myGeomFilter->GetOutput());
+    myPassFilter[2]->SetInput(myGeomFilter->GetOutput());
 
   myPSMapper->SetPrimitiveType( thePrimitiveType );
 }