<div dir="ltr">Amy,<div><br></div><div>After you commit, save the cvs commit output and forward it to me. I'll put it on the queue for merging into the VTK-5-2 branch.</div><div><br></div><div><br></div><div>Thx,</div>
<div>David</div><div><br><br><div class="gmail_quote">2008/7/30 Amy Squillacote <span dir="ltr"><<a href="mailto:ahs@cfdrc.com">ahs@cfdrc.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
In recently trying to use vtkPolyDataConnectivityFilter, I discovered that if you turn coloring on (to save the component id to a point data scalar array), the array marked as scalars in the input point data is not copied through to the output. Additionally, the "coloring" array has no name. The attached patch corrects these two issues. The coloring array is added to the point data and set as "scalars", but the input point data scalars are not removed. Also, the coloring array is named "RegionId" to match the name used in vtkConnectivityFilter.<br>

<br>
If no one sees a problem with this, I will commit the change. Would it be possible to put this change on the 5.2 branch as well?<br>
<br>
- Amy<br><font color="#888888">
<br>
-- <br>
Amy Squillacote                    Phone: (256) 726-4839<br>
Computer Scientist                 Fax: (256) 726-4806<br>
CFD Research Corporation           Web: <a href="http://www.cfdrc.com" target="_blank">http://www.cfdrc.com</a><br>
215 Wynn Drive, Suite 501<br>
Huntsville, AL  35805<br>
<br>
</font><br>Index: vtkPolyDataConnectivityFilter.cxx<br>
===================================================================<br>
RCS file: /cvsroot/VTK/VTK/Graphics/vtkPolyDataConnectivityFilter.cxx,v<br>
retrieving revision 1.41<br>
diff -u -r1.41 vtkPolyDataConnectivityFilter.cxx<br>
--- vtkPolyDataConnectivityFilter.cxx   2 Nov 2007 15:39:02 -0000       1.41<br>
+++ vtkPolyDataConnectivityFilter.cxx   30 Jul 2008 18:11:01 -0000<br>
@@ -147,6 +147,7 @@<br>
     }<br>
<br>
   this->NewScalars = vtkIdTypeArray::New();<br>
+  this->NewScalars->SetName("RegionId");<br>
   this->NewScalars->SetNumberOfTuples(numPts);<br>
   newPts = vtkPoints::New();<br>
   newPts->Allocate(numPts);<br>
@@ -265,11 +266,6 @@<br>
   // everything that has been visited.<br>
   //<br>
   //Pass through point data that has been visited<br>
-  pd = input->GetPointData();<br>
-  if ( this->ColorRegions )<br>
-    {<br>
-    outputPD->CopyScalarsOff();<br>
-    }<br>
   outputPD->CopyAllocate(pd);<br>
   outputCD->CopyAllocate(cd);<br>
<br>
<br>_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br></blockquote></div><br></div></div>