<div dir="ltr">Hello,<br><br>I am working on a bugfix within vtkPolyData. Here I try the following thing:<br><br>vtkCellTypes *types;<br>Â types = vtkCellTypes::New();<br>Â types->DeepCopy(this->Cells);<br><br>Â for (int i = 0; i < types->GetNumberOfTypes(); i++)<br>
   {<br>   std::cout << i << " -> "<br>     << (int)types->GetCellType(i) << ", "<br>     << (int)this->Cells->GetCellType(i)<br>     << std::endl;<br>
<br>Â Â Â }<br><br>The output is this:<br><br>0 -> 0, 1<br>1 -> 0, 1<br>2 -> 0, 1<br>3 -> 0, 1<br>4 -> 0, 0<br>5 -> 0, 3<br>6 -> 0, 3<br>7 -> 0, 3<br>8 -> 3, 3<br>9 -> 3, 3<br>10 -> 3, 3<br>
11 -> 3, 3<br>12 -> 0, 0<br>13 -> 5, 5<br>14 -> 5, 5<br>15 -> 0, 0<br>16 -> 6, 6<br>17 -> 0, 0<br><br>It seems as if DeepCopy is not work properly. The first value should be equivalent to the second. For the first values it is not!<br>
<br>Is this another bug or am I doing something wrong?<br><br>Best regards<br><br>Ronald<br></div>