<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hi all,<BR><BR>I'm with a problem!<BR>I am using ptyhon 2.5 and vtk 5.0
.<BR>This script functioned perfectly in python 2.3 and vtk
4.2.<BR><BR> p
=
vtk.vtkPoints()<BR>
il =
vtk.vtkIdList()<BR><BR>
for i in
xrange(0,points.GetNumberOfPoints()):<BR>
ponto =
points.GetPoint(i)<BR>
pick.Pick(ponto[0],ponto[1],0,self.ren)<BR><BR>
ponto =
pick.GetPickPosition()<BR>
p.InsertNextPoint(ponto[0],ponto[1],ponto[2])<BR>
il.InsertNextId(i)<BR>
<BR> poly =
vtk.vtkPolyData()<BR>
poly.Allocate(1,1)<BR>
poly.InsertNextCell(3, il)
<BR>
poly.SetPoints(p)<BR><BR>
tr =
vtk.vtkTriangleFilter()<BR>
tr.SetInput(poly)<BR>
tr.Update()<BR><BR>
st =
vtk.vtkStripper()<BR>
st.SetInput(tr.GetOutput())<BR>
st.Update()<BR><BR>
poly2 =
vtk.vtkPolyData()<BR>
poly2.SetPoints(st.GetOutput().GetPoints())<BR>
poly2.SetPolys(st.GetOutput().GetLines())<BR><BR>
polystencil =
vtk.vtkPolyDataToImageStencil()<BR>
polystencil.SetInput(poly2)<BR>
polystencil.Update() <FONT color=#ff0000># In this point, there are
crash.</FONT><BR><BR>Now it is giving this error "Error extracting
eigenfunctions".</DIV>
<DIV>And a windows erro appear.<BR>Somebody can help to decide this me?
<BR><BR>Thanks.<BR><BR>Glauco<BR></DIV></BODY></HTML>