[vtkusers] recovering the Polydata

Jothy jothybasu at gmail.com
Tue Jun 22 10:59:08 EDT 2010


Actor.Getmapper()->GetInput() work well for me.

Verify your input

Jothy

On Tue, Jun 22, 2010 at 3:44 PM, Giancarlo Amati <ilferraresebono at hotmail.it
> wrote:

>  Hello everybody,
>
> I am trying to retrieve the polydata linked to a particular actor. I have
> my actor saved in a list
> I used the "GetMapper" function to get the pointer to a vtkMapper * and the
> I used
> the function "IsA" to test if it is a vtkPolyDataMapper.
> The IsA function returns true and I used
>
> vtkPolyData *pd = mapper->GetInput();
>
> to retrieve the polydata, but somehow I don't get anything reasonable and
> the number of vertices is 0.
>
> is that the right way to retrieve a polydata from the pipeline?
>
> Many thanks.
> Giancarlo
>
> ------------------------------
> Un mondo di personalizzazioni per Messenger, PC e cellulare, scaricale
> gratis! <http://www.pimpit.it/>
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100622/ac1601fa/attachment.htm>


More information about the vtkusers mailing list