[vtkusers] [vtkusers]

kitware-vtk at kulnet.kuleuven.ac.be kitware-vtk at kulnet.kuleuven.ac.be
Thu Jun 20 12:13:58 EDT 2002


---  Forwarded by news2mail for "Stijn Goris" <mepisto at hotmail.com> ---

Hello,

I want to know the number of points in the sphere bump with the function
GetNumberOfPoints (vtkPolyData). but when I use  puts [$pDatat
GetNumberOfPoints] or  puts [pDatat GetNumberOfPoints]. I get 0 as treturn.
Am I doing something wrong?
Please help me out

vtkSphereSource bump
    bump SetThetaResolution 10
    bump SetPhiResolution 10
    bump SetRadius 1.8

vtkPolyData pDatat
    set pDatat [bump GetOutput]
    puts [$pDatat GetNumberOfPoints]


vtkPointData pointData
    set pointData [pDatat GetPointData]
    puts [$pointData GetNumberOfTuples]







More information about the vtkusers mailing list