[vtkusers] vtkVolume vtkActor

Jochen K. jochen.kling at email.de
Tue Jun 26 10:34:50 EDT 2012


Hi Antonio,


I'm sorry for that.

Hmm, you say the class extracts a polydata from the actor.


Assuming your volume source is a vtkImageData you could use
vtkImageDataGeometryFilter to convert it to a polyData object. Then you can
use this as the input of a vtkPolyDataMapper and finally create a vtkActor.


//...
vtkSmartPointer<vtkImageDataGeometryFilter> filter =
vtkSmartPointer<vtkImageDataGeometryFilter>::New();
filter->SetInput(yourImageData)
vtkSmartPointer<vtkPolyDataMapper> mapper =
vtkSmartPointer<vtkPolyDataMapper>::New();
mapper->SetInputConnection(filter->GetOutputPort());
vtkSmartPointer<vtkActor> actor =
vtkSmartPointer<vtkActor>::New();
vtkActor->SetMapper(mapper);
//...



Maybe this is an workaround for your problem.


best regards
Jochen



--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkVolume-vtkActor-tp5714227p5714244.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120626/72bb7fdb/attachment.htm>


More information about the vtkusers mailing list