[vtkusers] vtkPointLocator

Nikita Kojekine AKA Kitya Karlson karlson at stu.mech.titech.ac.jp
Mon Apr 23 03:33:22 EDT 2001


"Asad A. Abu-Tarif" wrote:

> Hi,
> One simple thing, do you initialize the
> point_num to zero??

yes, I do.

> If you do, I would suggest to use the PrintSelf
> method of vtkPointsSet and check the number of points.
>
> The error you are getting is issued only if
> the vtkPoints structure (your PointArray) is NULL
> or when the number of points there is zero. So, it
> seems that the point insertion is failing for some reason.

I used PrintSelf, that's what I get:
Creating... vtkPoints (0x007D00D0)
  Debug: Off
  Modified Time: 2
  Reference Count: 1
  Number Of Points: 1488
  Bounds:
    Xmin,Xmax: (-7.2868, 6.70848)
    Ymin,Ymax: (-0.054, 17.36)
    Zmin,Zmax: (-4.55872, 4.57025)
It looks good, but still I get the same error :(






More information about the vtkusers mailing list