I am trying to make a polydata composed of polylines , I am planning to add tensor information at each of the points .<br>i want to make a EllipsoidTensorProbeRepresentation which will add this polyline as a trajectory so that I can get an <br>
ellipsoid representation across the polyline.<br><br>My main problem is adding the tensor.<br>I did the following<br><br>vtkDoubleArray *dbar = vtkDoubleArray::New();<br>dbar->SetNumberOfValues(size);<br>dbar->SetNumberOfComponents(9);<br>
<br>The for each point I add the 9 components using the following function<br><br>dbar->SetComponent(i,0,1)<br>dbar->SetComponent(i,1,1);<br>.............. and so on <br><br>When I try to add it to the polydata though <br>
indata->GetPointData()->SetTensors(dbar);<br><br>It crashes .<br><br>I am not sure where I am going wrong <br><br>Please Help<br><br>Darshan<br><br>