[vtkusers] vtkPoints array management

Fred Fred stan1313 at hotmail.fr
Fri Sep 11 08:52:16 EDT 2009


Look at this men:

  vtkPoints *points = vtkPoints::New();
  [...some point adding steps...]
  int numPts = points->GetNumberOfPoints();
  printf("numPts=%d\n", numPts);
  double *pts0 = points->GetPoint(0);
  double *ptsn = points->GetPoint(1);
  printf("%p %p\n", pts0, ptsn);

which leads:

numPts=11
0x19982c40 0x19982c40

Whatever the possibility I Made some mistake anywhere, I can not understand how this is possible!
GetPoint(0) returns the same address as GetPoint(1) while there are 11 points in the array!!!


_________________________________________________________________
Achetez un nouveau PC et bénéficiez de Windows 7 dès sa sortie ! 
http://www.portable-windows.com/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090911/37190be5/attachment.htm>


More information about the vtkusers mailing list