[vtkusers] GetNumberOfPoints() returns 0

Xiaobin Wang xiaobin2006 at gmail.com
Mon May 15 03:50:01 EDT 2006


Hi users,

I have got a very wierd problem .
the code segment ---------------
   vtkSphereSource *Sphere= vtkSphereSource::New();
   Sphere->SetRadius(10);
   Sphere->SetCenter(0,0,0);
    vtkDoubleArray  *pDouble = vtkDoubleArray::New();
    N=Sphere->GetOutput()->GetNumberOfPoints();
    printf("%d,\n",N);

I expect N is a finite number of points of the polygonal data representing
the sphere.
But  i got N =0!
I really confused .can somebody help?
thanks for your time ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060515/b2f3f0f7/attachment.htm>


More information about the vtkusers mailing list