[vtkusers] vtkPolyDataAlgorithm Input setting problem?

David Doria daviddoria at gmail.com
Mon Dec 6 22:07:35 EST 2010


On Mon, Dec 6, 2010 at 9:09 PM, Ambar C <ambarc at gmail.com> wrote:
> Hello,
>
> I have the code:
>
> vtkSmartPointer<vtkPolyDataAlgorithm> algo =
> vtkSmartPointer<vtkPolyDataAlgorithm>::New();
> algo->SetInput(baseMesh);
>
> where baseMesh is the output of a transform filter (which has been checked).
>
> This line causes me to get the output
>
> vtkPolyDataAlgorithm (02EA1DC8): Definition of Execute() method should
> be in subclass and you should really use the
> ExecuteData(vtkInformation *request,...) signature instead
>
> I'm not quite sure what to do with this, and think that the problem
> lies with the way I'm setting my input. Any suggestions?

You cannot instantiate vtkPolyDataAlgorithm, it is abstract. What is
it you are trying to do? You need to use an appropriate subclass. You
can see all of the subclasses here:
http://www.vtk.org/doc/nightly/html/hierarchy.html (search for
vtkPolyDataAlgorithm on the page)

David



More information about the vtkusers mailing list