[vtkusers] Error with vtkPolyDataToImageStencil ! Help Please !!

Glauco Silva glauco.silva at cenpra.gov.br
Mon Dec 18 08:03:24 EST 2006


Hi all,

I'm with a problem!
I am using ptyhon 2.5 and vtk 5.0 .
This script functioned perfectly in python 2.3 and vtk 4.2.

            p = vtk.vtkPoints()
            il = vtk.vtkIdList()

            for i in xrange(0,points.GetNumberOfPoints()):
                ponto = points.GetPoint(i)
                pick.Pick(ponto[0],ponto[1],0,self.ren)

                ponto = pick.GetPickPosition()
                p.InsertNextPoint(ponto[0],ponto[1],ponto[2])
                il.InsertNextId(i)
                       
            poly = vtk.vtkPolyData()
            poly.Allocate(1,1)
            poly.InsertNextCell(3, il) 
            poly.SetPoints(p)

            tr = vtk.vtkTriangleFilter()
            tr.SetInput(poly)
            tr.Update()

            st = vtk.vtkStripper()
            st.SetInput(tr.GetOutput())
            st.Update()

            poly2 = vtk.vtkPolyData()
            poly2.SetPoints(st.GetOutput().GetPoints())
            poly2.SetPolys(st.GetOutput().GetLines())

            polystencil = vtk.vtkPolyDataToImageStencil()
            polystencil.SetInput(poly2)
            polystencil.Update()  # In this point, there are crash.

Now it is giving this error  "Error extracting eigenfunctions".
And a windows erro appear.
Somebody can help to decide this me? 

Thanks.

Glauco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061218/296bb478/attachment.htm>


More information about the vtkusers mailing list