[vtk-developers] StencilData changes

dean.inglis at camris.ca dean.inglis at camris.ca
Tue Feb 26 08:30:10 EST 2008


Hi David,

I have a possible fix for the failing 
tracer widget test:
here is what works for the tcl example:

#------------------------
vtkLinearExtrusionFilter extrude
  extrude SetInput spoly
  extrude SetScaleFactor 1 
  extrude SetExtrusionTypeToNormalExtrusion 
  extrude SetVector 1 0 0 

# help the stencil out a but by forcing the
# polydata to straddle the image plane
#
vtkTransformPolyDataFilter filter
vtkTransform trans 
trans Translate -0.5 0 0
filter SetInput [extrude GetOutput]
filter SetTransform trans

vtkPolyDataToImageStencil dataToStencil
dataToStencil SetInputConnection [filter GetOutputPort]

# have to set the image information somehow
#
dataToStencil SetInformationInput [extract GetOutput]
#------------------------

although when I use the SetInformationInput method 
I get a slew of leaks from vtkDebugLeaks.  If I use
the SetOutputOrigin, SetOutputSpacing,
SetOutputWholeExtent methods, the leaks do not
occur.  Could you verify that leaks occur if you
use the former method?

Dean




More information about the vtk-developers mailing list