[vtkusers] How to remove a CellArray from a vtkPolyDataSet?

Joes Staal joes at isi.uu.nl
Wed Aug 20 12:02:58 EDT 2003


Hi,

I am making a tool in which a vtkPolyDataSet consisting
of N tubes is shown. I want that a user can click on
a tube that the whole tube is e.g. colored in another
color.
I have put a vtkCellPicker in an interactor and can get
in this way the pickpostion, coordinates, cellid and
the subid (I have no clue what the subid is, but
I guess that is not important to my question):

  float* pickpos = pPicker->GetPickPosition();
  float* pcoord = pPicker->GetPCoords();
  int cellid = pPicker->GetCellId();
  int subid = pPicker->GetSubId();

Now, how do I get from the CellId to the vtkCellArray
it belongs to?

Regards,

Joes.




More information about the vtkusers mailing list