[vtkusers] recovering the Polydata
Giancarlo Amati
ilferraresebono at hotmail.it
Tue Jun 22 11:23:07 EDT 2010
Actually I saved the list of my actor in a vector. And well the input is deleted once I has set the actor in the renderer. If I would saved the input, where there would be no mean of using getmapper()->getInput().
I checked the actor, and I verified the input and everything seems ok.
:(
GC.
Date: Tue, 22 Jun 2010 11:20:40 -0400
Subject: Re: [vtkusers] recovering the Polydata
From: darshanpai at gmail.com
To: jothybasu at gmail.com
CC: ilferraresebono at hotmail.it; vtkusers at vtk.org
I am just wondering , maybe I am wrong, but if you delete the Input then Actor->GetMapper()->GetInput() should fail . Maybe that is your error here ?
On Tue, Jun 22, 2010 at 10:59 AM, Jothy <jothybasu at gmail.com> wrote:
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!
_______________________________________________
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
_______________________________________________
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
_________________________________________________________________
Gratis per te Avatar per Messenger e sfondi per il PC
http://www.experience.windows.com/landing2.aspx?culture=it-it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100622/7f7ece5c/attachment.htm>
More information about the vtkusers
mailing list