[vtkusers] Modification of a vtkActor and cell picking

Will Schroeder will.schroeder at kitware.com
Thu Sep 4 07:23:57 EDT 2003


It is possible that picking is not the problem, but rather the addition of 
the cells is corrupting memory and when you pick the problem is exposed. I 
suggest that you get a tool like Purify or Valgrind and diagnose where the 
memory problem is.
Will

At 11:47 AM 9/4/2003 +0200, Vincent Arsigny wrote:
>Hi,
>
>I'm currently visualizing some data with vtkPolyData, and there
>
>First, I create an initial PolyData, which is rendered.
>Then, I modify this PolyData by adding new cells, which are displayed
>correctly in the render window.
>
>The trouble is that when I use a vtkCellPicker after having modified the
>PolyData, the system crashes because of a segmentation fault in the method 
>GetCell().
>
>I guess what is missing here is some king of updating procedure that must 
>be done prior to the picking. Could any one give me a clue about this?
>I've already tried losts of Modified() and Update() on all the objects
>involved in this, but so far to no avail.


William J. Schroeder, Ph.D.
Kitware, Inc.
469 Clifton Corporate Parkway
Clifton Park, NY 12065
will.schroeder at kitware.com
1-518-371-3971 x102 (phone)
1-518-371-3971 (fax) 





More information about the vtkusers mailing list