[vtkusers] Re: Polydata point coords

Goodwin Lawlor goodwin.lawlor at ucd.ie
Fri Dec 15 15:23:16 EST 2006


Gheorghe Postelnicu wrote:
> Hi,
> 
> Is there a way to retrieve the coordinates of the points of a polyData
> as a float array? I am mainly concerned with efficiency, since I do
> this in Tcl.
> 
> Thanks,

vktMyFilter Update
set data [vtkMyFilter GetOutput]

set point [[$data GetPoints] GetPoint 0]

or

set point [[[$data GetPoints] GetData] GetTuple3 0]

hth

Goodwin




More information about the vtkusers mailing list