[vtkusers] vtkSurfaceReconstructionFilter from raw points

AirWalker air at freemail.hu
Tue Feb 27 11:25:09 EST 2007


-----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-----



More information about the vtkusers mailing list