[vtkusers] possible bug: vtkTubeFilter not passing cell data

Brad King brad.king at kitware.com
Thu Mar 31 08:24:49 EST 2005


ALIZIER Julien AUSY wrote:
> 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.

Good catch.  Please report it to the bug tracker:

http://www.vtk.org/Bug

Thanks,
-Brad



More information about the vtkusers mailing list