[Paraview] Cone as input and Sphere as output for plugin filter

Moreland, Kenneth kmorel at sandia.gov
Mon Apr 9 09:50:21 EDT 2012


Call sphere->Update() after SetRadius but before GetOutput.

-Ken

From: "Boettcher, Prof. Dr. Peter" <Boettcher at kleintierklinik.uni-leipzig.de<mailto:Boettcher at kleintierklinik.uni-leipzig.de>>
Date: Mon, 9 Apr 2012 15:37:55 +0200
To: <paraview at paraview.org<mailto:paraview at paraview.org>>
Subject: [EXTERNAL] [Paraview] Cone as input and Sphere as output for plugin filter

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.

_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120409/bfa3bae6/attachment.htm>


More information about the ParaView mailing list