[vtkusers] possible bug: vtkTubeFilter not passing cell data

ALIZIER Julien AUSY julien.alizier-ausy at irsn.fr
Thu Mar 31 08:14:08 EST 2005


Dear vtkusers,

It looks like Graphics/vtkTubeFilter.cxx (any version, including cvs file
version 1.84) does not generate cell data properly.
I corrected 1 line when going through the code:

  // Copy selected parts of cell data; certainly don't want normals
  //
  numNewCells = inLines->GetNumberOfCells() * this->NumberOfSides + 2;
  outCD->CopyNormalsOff();
  //outPD->CopyAllocate(pd,numNewCells); // <-- weird line
  outCD->CopyAllocate(cd,numNewCells);   // <-- corrected line

I tested it quickly and now it seems to work well with cell data.

(see also
http://public.kitware.com/pipermail/vtkusers/2002-October/063230.html)

HTH
-- Julien








More information about the vtkusers mailing list