[vtkusers] Why is the number of points not equal to the product of the resolution of the vtkPlaneSource object?

bluefishjj bluefishjj at 126.com
Mon Aug 25 08:33:36 EDT 2008


Hi all,

   My code is as follows:

   vtkPlaneSource *pPlaneSrc = vtkPlaneSource::New();
   pPlaneSrc->SetResolution(nW, nH);
   pPlaneSrc->Update();
   int nXRes = pPlaneSrc->GetXResolution();
   int nYRes = pPlaneSrc->GetYResolution();

   vtkPolyData *pTransPolyData = pPlaneSrc->GetOutput();
   int nPts = pTransPolyData->GetNumberOfPoints();

 
   and I found that nXRes == nW, nYRes == nH, but nPts != nW * nH. I have no idea why?


   Thank you in advance!

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080825/46a50328/attachment.htm>


More information about the vtkusers mailing list