[vtkusers] Adding a vtkTextActor during a EndPickEvent callback command hangs the renderer (Visual Studio 2012)

sonogi1979 at live.jp sonogi1979 at live.jp
Thu Dec 27 06:13:32 EST 2012


Hi,

I found vtkTextActor freeze in the line 412 of
vtkOpenGLPolyDataMapper2D.cxx. The program freezes in GetTuple function of
vtkDataArrayTemplate.txx.

[vtkOpenGLPolyDataMapper2D.cxx]
396: for (j = 0; j < npts; j++)
397: {
...
412:   glTexCoord2dv(t->GetTuple(pts[j]));// freeze here
...
418: }

When GetTuple(vtkId) is replaced with GetTuple(vtkId, double*), the program
works in VS2012 release without debugger.

[vtkOpenGLPolyDataMapper2D.cxx]
411:   {
412:     //glTexCoord2dv(t->GetTuple(pts[j])); // freeze in release without
debugger
   :     double txcoord_value[2];
   :     t->GetTuple(pts[j], txcoord_value);
   :     glTexCoord2dv(txcoor_value));
413:   }

Bests,
Shinya




--
View this message in context: http://vtk.1045678.n5.nabble.com/Adding-a-vtkTextActor-during-a-EndPickEvent-callback-command-hangs-the-renderer-Visual-Studio-2012-tp5717430p5717734.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list