[vtkusers] Using vtkMergePoints
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Feb 14 14:53:53 EST 2005
Nacho,
vtkMergePoints does not do any bounds checking. So if you define a
bound too small for all your points the programm will crash (it's a
feature). I would suggest you atifically augment your bound.
The fact that it used to run, I don't know. Could this be a problem
with double that does not appear with float...
HTH
Mathieu
Nacho Larrabide wrote:
> Hi everybody,
>
> I'm using a cvs vtk version and I'm tryng to use the vtkMergePoints
> class to create the set of point corresponding to a very big
> triangle mesh. The code that I'm usind is this:
>
> vtkMergePoints *mp=vtkMergePoints::New();
> mp->InitPointInsertion(puntos,bounds,estimatedSize);
> mp->SetAutomatic(1);
>
> ....
>
> float pt1[3],pt2[3];
> int id1,id2;
> // some point initialization
> mp->InsertUniquePoint(pt1,id1);
> mp->InsertUniquePoint(pt2,id2);
>
> By wath I read so far this should do the work, but somewere around
> point 43.000 and something this blows up. Debugging the code I
> found that the bucket that vtkMergePoints is inserting the point
> can not be retreived by the HashTable.
> Am I missing something?, This same code use to work with an older
> vtk version (vtk4.0 I think).
> Please help...:D
>
> Regards,
>
> Nacho
>
> -----------------------------------------------------
> Nacho Larrabide
> Rua Getulio Vargas 333 - Quitandinha - CEP: 25651-070
> Petropolis - RJ - Brasil
>
> Tel: +54 24 2233-6137 - Fax: +54 24 2233-6167
>
> mailto:nacho at lncc.br
> -----------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list