From 1af89b1a0aacb28d08ea9a089bf36153f7d9fc69 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 26 Dec 2006 12:31:23 +0000 Subject: [PATCH] To avoid the following VTK error after exit from "segmentation cursor mode": ERROR: In /data/apo/VTK-4.2.6/Graphics/vtkCellDataToPointData.cxx, line 59 vtkCellDataToPointData (0xa9b49e0): No input point data! --- src/PIPELINE/VISU_GaussPointsPL.cxx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index 02f002c2..0b6985e5 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -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 ); } -- 2.39.2