<div class="gmail_quote">On Wed, Mar 24, 2010 at 6:46 PM, Darshan Pai <span dir="ltr"><<a href="mailto:darshanpai@gmail.com">darshanpai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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><font color="#888888"><br>Darshan<br><br></font></blockquote><div class="gmail_quote">
<br></div><div class="gmail_quote">Can you make the smallest compilable example that demonstrates this behavior and post it to the list?</div><br clear="all">Thanks,<br><br><div>David </div></div><br>