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());
}
mySphereSource->Delete();
- for(int i = 0; i < 2; i++)
+ for(int i = 0; i < 3; i++)
myPassFilter[i]->Delete();
}
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() );
}
//----------------------------------------------------------------------------
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;
}
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 );
}