[vtkusers] vtkPolyDataSilhouette troubles
felixmeissner
felix.meissner at student.fh-kiel.de
Thu Feb 25 14:01:09 EST 2010
Hi,
I'm trying to draw a vtkPolyDataSilhouette based on a vtkPolyData-Model to a
vtkImageViewer2. This Works partially, but the silhouette is rendered only
in small parts to the image:
http://de.tinypic.com/view.php?pic=1zx1jer&s=6
As you can see only parts of the "silhouette" are painted.
Im not sure if vtkPolyDataSilhouette is the right class to use for this
purpose or if I missed an option so that the contour is continous. Any
suggestens are welcome.
Thank you, Felix
==== some code snippets Im using =====
self.silhouette = vtk.vtkPolyDataSilhouette()
self.silhouette.SetInput(model.GetOutput())
self.silhouette.BorderEdgesOn()
self.silhouette.PieceInvariantOn()
self.silhouette.SetCamera(self.viewer.GetRenderer().GetActiveCamera())
mapper = vtk.vtkPolyDataMapper()
mapper.SetInput(self.silhouette.GetOutput())
self.__SilhouetteActor = vtk.vtkActor()
self.__SilhouetteActor.SetMapper(mapper)
self.__SilhouetteActor.GetProperty().SetColor(1, 0, 0)
self.__SilhouetteActor.SetOrigin(x, y, z)
self.__SilhouetteActor.VisibilityOn()
self.__SliceViewer.GetRenderer().AddActor(self.__SilhouetteActor)
self.__SliceViewer.Render()
--
View this message in context: http://old.nabble.com/vtkPolyDataSilhouette-troubles-tp27714500p27714500.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list