Hello:<br><br>I know there are lots of people who has the same problem as me but, for my readings, nobody could solve it.<br>I receive the following vtk error:<br><br>&nbsp;&nbsp;&nbsp; ERROR: In .\vtkStreamer.cxx, line 488<br>&nbsp;&nbsp;&nbsp; vtkStreamLine (0D92B060): No vector data defined!<br>
<br>This is my code:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetInput(this-&gt;temp3d);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetSource(this-&gt;pvtkSeeds);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetMaximumPropagationTime(100);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetIntegrationStepLength(.2);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetStepLength(.001);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetNumberOfThreads(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetIntegrationDirectionToForward();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;VorticityOn();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;Update();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;DistanceMapper-&gt;SetInputConnection(this-&gt;pvtkLine-&gt;GetOutputPort());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double tmp[2];<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;temp3d-&gt;GetScalarRange(tmp);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;DistanceMapper-&gt;SetScalarRange(tmp[0], tmp[1]);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;DistanceMapper-&gt;ImmediateModeRenderingOn();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;DistanceMapper-&gt;Update();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;DistanceActor-&gt;SetMapper(this-&gt;DistanceMapper);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;DistanceActor-&gt;VisibilityOff();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneMapper-&gt;SetInput(this-&gt;temp3d);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneMapper-&gt;ImmediateModeRenderingOn();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneMapper-&gt;Update();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;SetMapper(this-&gt;BoneMapper);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetColor(1.0, 1.0, 0.0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetDiffuse(0.0);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetSpecular(1.0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;BoneActor-&gt;GetProperty()-&gt;SetSpecularPower(5);<br><br>I could read that a possible solution is to add the vtkAssignAttribute so I did it like this:<br>
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkAssignAttribute *aa = vtkAssignAttribute::New();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; aa-&gt;Assign( vtkDataSetAttributes::SCALARS,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkDataSetAttributes::VECTORS,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkAssignAttribute::POINT_DATA );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; aa-&gt;SetInput( this-&gt;temp3d );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; aa-&gt;Update();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetInputConnection(aa-&gt;GetOutputPort());<br>//&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetInput(this-&gt;temp3d);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetSource(this-&gt;pvtkSeeds);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetMaximumPropagationTime(100);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetIntegrationStepLength(.2);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetStepLength(.001);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetNumberOfThreads(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;SetIntegrationDirectionToForward();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;VorticityOn();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this-&gt;pvtkLine-&gt;Update();<br>
................<br><br>But now I have another error:<br><br>&nbsp;&nbsp; Warning: In .\vtkDataSetAttributes.cxx, line 945<br>&nbsp;&nbsp; vtkPointData (0D9F6D00): Can not set attribute Vectors. Incorrect number of components.<br><br>&nbsp;&nbsp; ERROR: In .\vtkStreamer.cxx, line 488<br>
&nbsp;&nbsp; vtkStreamLine (0D92B060): No vector data defined!<br><br>I can&#39;t understand what the problem, could anybody helps me!!??<br><br>Thanks a lot. I need to solve it.<br><br>