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