I think thats probably the correct behavior. Since the name is a "id" for most practical purposes copying the id might not be the best thing to do.<br><br><br>~Aashish<br><br><br><br><br><div class="gmail_quote">
On Wed, Mar 31, 2010 at 10:57 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Mar 31, 2010 at 10:34 AM, Aashish Chaudhary<br>
<div class="im"><<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>> wrote:<br>
</div><div class="im">> Quickly looking I am not sure whats wrong. In my code I cannot duplicate<br>
> this kind of behavior. The lines you posted is exactly what you doing? If<br>
> thats the case I don't know.<br>
><br>
> May be you can post a small program which reproduces this problem?<br>
><br>
> ~Regards,<br>
> Aashish<br>
<br>
</div>Phew! After *hours* of debugging, the problem was (not in any of the<br>
code I posted) that when I DeepCopy()-ed an array:<br>
<div class="im"><br>
vtkSmartPointer<vtkDoubleArray> weights =<br>
vtkSmartPointer<vtkDoubleArray>::New();<br>
</div> weights->DeepCopy(originalWeights);<br>
<br>
I didn't set the name of the array to match:<br>
<br>
weights->SetName("Weights");<br>
<br>
I guess I assumed that would have happened in the DeepCopy()??<br>
<br>
Oh well, lesson learned!<br>
<br>
Thanks,<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a> <br>