[vtkusers] "No vectors defined" error for vtkStreamLine

Hao Wang haow at cs.utah.edu
Wed Jan 13 16:56:33 EST 2010


GetPointData().SetVectors() works. I used GetCellData().SetVectors() first
so the error message remains in the command line window. I didn't get any
error message from GetPointData().SetVectors().


On Wed, 13 Jan 2010 16:54:06 -0500, David Doria <daviddoria+vtk at gmail.com>
wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list