[vtkusers] Problem with vtkPolyDataToImageStencil
Tiago
tiago.faria at cenpra.gov.br
Tue Dec 12 12:37:53 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()
Now it is giving this error "Error extracting eigenfunctions".
Somebody can help to decide this me?
Thanks.
Tiago
More information about the vtkusers
mailing list