[vtkusers] vtkPolyDataMapper2D -> Render to rectangle.

Matthieu Dumont Matthieu.Dumont at USherbrooke.ca
Mon Aug 12 08:50:49 EDT 2013


Hi,

Im am currently using a vtkPolyDataMapper2D to display polydata slices  
on-screen.
My problem is that I would like to be able to specify exactly in what  
rectangle to render the polydata slice. I did it for an image with  
vtkImageMapper using the actors Position2 and the mapper's  
RenderToRectangleOn() method but I cant achieve the same effet with  
the vtkPolyDataMapper2D. By looking at the code, it seems that the  
mapper dosent even use the actor's Position2 property.

Do you guys have any idea how I could do this.


Thank you!






More information about the vtkusers mailing list