[vtkusers] mixing vtkImageActor with solidly rendered vtkPolyData

Mathieu Coursolle mcoursolle at rogue-research.com
Mon Jun 4 15:07:09 EDT 2007


Hi,

Is the polydata on the same layer as the image? I mean,
if the image origin is (originX, originY, originZ), the
polydata origin should be closer to the camera in the
direction of projection to make sure it is always visible.
Otherwise it may appear or not if they are defined at the same
position.

I usually define an epsilon value to the polydata to put in 
front of an image. If my image is at (originX, originZ, 0), I put my polydata
position as (posX, posY, epsilon).

Hope it will help...

Thanx.

MAthieu

-- 
____________________________________________________________
Mathieu Coursolle                   mcoursolle at rogue-research.com
Rogue Research                      www.rogue-research.com 
Montréal, Québec, Canada

>
>in a renderer I have a vtkImageActor (ivar of vtkImageViewer2)
>showing a slice of a 3D image.  On top of that are 
>two vtkActors rendering 2D contours (vtkPolyData lines) from a
>segmentation and
>another actor rendering a 2D filled segmentation region (
>vtkPolyData solid polygon).  When I scroll through the slices,
>each slice's contour lines and polygonal region are
>updated.  I can see the lines but the polygons appear
>briefly and then disappear.  If I hide the vtkImageActor,
>the polygons are clearly there.  If I set the polygon actor
>to render as a wireframe, the region is correctly shown as a triangulated
>polygon whether or not the image actor is visible or not.
>If I toggle between wireframe and solid when the image actor
>is visible, the solid polygon will not display: only the wireframe  
>representation will.  SetCoincidentTopologyToPolygonOffset has no
>effect.  How can I mix vtkImageActor with solidly rendered vtkPolyData?
>
>Dean 
>
>_______________________________________________
>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