[Paraview] Cone as input and Sphere as output for plugin filter
    Boettcher, Prof. Dr. Peter 
    Boettcher at kleintierklinik.uni-leipzig.de
       
    Mon Apr  9 09:37:55 EDT 2012
    
    
  
Hi All
 
I would like to implement a polydataalgorithm filter which takes a
polydata as input (a cone), does some calculations and produces a sphere
as output of the plugin algorithm. Unfortunately, instantiation of the
sphere seems to be of a problem, as the output remains empty. 
 
This is what I am doing:
 
int vtkTestSphere::RequestData(vtkInformation *request,
vtkInformationVector **inputVector, vtkInformationVector *outputVector)
{
   vtkSmartPointer<vtkSphereSource> sphere =
vtkSmartPointer<vtkSphereSource>::New();
   sphere->SetRadius(50);
   this->GetOutput()->DeepCopy(sphere->GetOutput());
   
  
  return 1;
}
 
 
Any help would me much appreciated!
 
Regards, Peter.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120409/e0f240d4/attachment.htm>
    
    
More information about the ParaView
mailing list