I think thats probably the correct behavior.  Since the name is a &quot;id&quot; 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">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</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">&lt;<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>&gt; wrote:<br>
</div><div class="im">&gt; Quickly looking I am not sure whats wrong. In my code I cannot duplicate<br>
&gt; this kind of behavior. The lines you posted is exactly what you doing? If<br>
&gt; thats the case I don&#39;t know.<br>
&gt;<br>
&gt; May be you can post a small program which reproduces this problem?<br>
&gt;<br>
&gt; ~Regards,<br>
&gt; 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&lt;vtkDoubleArray&gt; weights =<br>
      vtkSmartPointer&lt;vtkDoubleArray&gt;::New();<br>
</div>  weights-&gt;DeepCopy(originalWeights);<br>
<br>
I didn&#39;t set the name of the array to match:<br>
<br>
  weights-&gt;SetName(&quot;Weights&quot;);<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&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    <br>