[vtkusers] vtkSurfaceReconstructionFilter from raw points

Mike Jackson imikejackson at gmail.com
Tue Feb 27 12:45:25 EST 2007


surf.SetInputConnection(points)

should be
surf.SetInput(points)


--  
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Feb 27, 2007, at 11:25 AM, AirWalker wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> I've got a lot of points and I'd like to create a nice surface from
> them. I found the reconstructSurface.py, it's logical and clear but I
> want to do this without using vtkProgrammableSource. Is it possible?
> here is the code:
> points = vtk.vtkPoints()
> file=open("points.txt")
> line = file.readline()
> while line:
>     data = line.split(',')
>     x, y, z = float(data[0]), float(data[1]), float(data[2])
>     points.InsertNextPoint(x, y, z)
>     line = file.readline()
>
> surf = vtk.vtkSurfaceReconstructionFilter()
> surf.SetInputConnection(points)
> ValueError: method requires a vtkAlgorithmOutput, a vtkPoints was  
> provided.
>
> Can I convert vtkPoints to vtkAlgorithmOutput?
>
> Thanks,
>
> air
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFF5FtlHql4/uqDsvsRAvYqAKCyUru0AgKugaFryPXPgaVjl4SrfgCglgAl
> IvOAnTbKcNeXwSNX4BMqmgA=
> =EQLF
> -----END PGP SIGNATURE-----
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ 
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list