[vtkusers] How to change the actor data without deleting it.

John Platt jcplatt at lineone.net
Sat Feb 19 12:09:41 EST 2005


Hi Ahmad,

If you want to destroy a mapper, try

	Actor->SetMapper( NULL );
	Mapper->Delete();

If you use vtkDataSetMapper, you should not need to do this as this will
handle both vtkPolyData & vtkUnstructuredGrid.

HTH

John.


-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of Ahmad Hosseinzadeh
Sent: 19 February 2005 11:50
To: VTK List
Subject: [vtkusers] How to change the actor data without deleting it.

Hi,

I want to change the actor data (e.g. add/remove a
filer to/from actor) without removing the previous
actor and create a new one.
I have disconnected the actor from renderer before
setting the mapper but it dosen't work. The
application halts when I want to connect data to actor
using "setMapper()" method.

Do you have idea how to figure it out?

Thanks,
ahmad.

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list