[vtkusers] "No vectors defined" error for vtkStreamLine

David Doria daviddoria+vtk at gmail.com
Wed Jan 13 16:54:06 EST 2010


On Wed, Jan 13, 2010 at 4:22 PM, Hao Wang <haow at cs.utah.edu> wrote:
> I'm producing my own vtkPolyData to test one of the vtk classes
> implemented by myself. The vtkStreamLine module, which is downstream in
> the
> pipeline, complains that the vtkPolyData passed to it
> has "no vectors defined". I tried to set the vectors by doing
> GetPointData().SetVectors() and GetCellPointData().SetVectors(). Neither
> way works. Do you know how to fix this problem?
>
> Thanks,
> Hao

Hao,

I have never used this filter so I don't know what it is expecting,
but did you try
GetCellData().SetVectors()
?

Also, a demo of vtkStreamLine would be a great addition here:
http://www.cmake.org/Wiki/VTK/Examples

If you have the time :)

Thanks,

David



More information about the vtkusers mailing list