[vtkusers] vtkFilterProbe

Magnus Hagdorn Magnus.Hagdorn at glg.ed.ac.uk
Sun Jul 14 08:36:15 EDT 2002


hi there,
i solved my picking points problem. i still don't seem to get the
vtkProbeFilter to work. i set the source to be a structured grid which
contains topography as scalar data:
    grid = vtkpython.vtkStructuredGrid()
    grid.SetDimensions(nx,ny,nz)
    data = vtkpython.vtkFloatArray()
    data.SetNumberOfComponents(1)
    data.SetNumberOfTuples(nx*ny)
    grid.SetPoints(points)
    grid.GetPointData().SetScalars(data)

the probe input is an unstructured grid containing a single point

when i get the unstructuredgridoutput from the probe i don't get the
interpolated data. did i miss something obvious.
help is greatly apriciated.
cheers
magi

-------------
Magnus Hagdorn
Department of Geology and Geophysics
The University of Edinburgh
Grant Institute
West Mains Road
Edinburgh EH9 3JW
Scotland
PHONE: (+44) 131 650 5917
FAX:   (+44) 131 668 3184
email: Magnus.Hagdorn at glg.ed.ac.uk




More information about the vtkusers mailing list