[vtkusers] vtkPlaneWidget overlapping RayCast Volume

Lisa Avila lisa.avila at kitware.com
Tue Oct 18 13:42:26 EDT 2005



Do you have an opacity that is not 1.0 on some property in your plane 
widget? This will cause a problem since two translucent overlapping objects 
will not be drawn correctly.

Lisa


At 08:06 AM 10/5/2005, Tiago wrote:
>Hi Guys!
>
>Having a raycast volume, when I rotate the plane (a vtkPlaneWidget) it
>overlaps the volume when it is on top of it. I mean, it is just as if the
>volume were backwards. However, they're in the same depth. Then, if I rotate
>the plane again, it still stays in a forward plane.
>
>Is it some plane property I'm not setting correctly? Has anyone ever had a
>problem similar to this? Does someone knows the solution?
>
>Thanks!
>
>Tiago
>
>ps: here is the part of the code, when I create the plane:
>
>         property = vtk.vtkProperty()
>         property.SetFrontfaceCulling(1)
>         property.FrontfaceCullingOn()
>
>         self.planeWidgetx = vtk.vtkImagePlaneWidget()
>         self.planeWidgetx.SetInput(cast.GetOutput())
>         self.planeWidgetx.SetPlaneOrientationToXAxes()
>         self.planeWidgetx.SetSliceIndex(0)
>         self.planeWidgetx.SetResliceInterpolateToLinear()
>         self.planeWidgetx.GetPlaneProperty().SetColor(1,0,0)
>         self.planeWidgetx.SetTexturePlaneProperty(property)
>
>         (...)
>
>         iact = iren._Iren
>         self.iact = iact
>         self.planeWidgetx.SetInteractor(iact)
>         self.planeWidgetx.On()
>
>_______________________________________________
>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