Dear Users, <div>I tested vtk example PolyDataExtractNormals (<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals</a>) code that tries to detect whether normals are present in input polydata structure and if not it will generate them. I made small change to code  at the end of the main function in order to run TestPointNormal twice so I have : </div>
<div><pre class="de1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;background-color:rgb(255,255,255);line-height:1.2em;font-size:10px;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top;text-align:left">
  std<span class="sy4" style="color:rgb(0,128,128)">::</span><span class="kw3" style="color:rgb(0,0,221)">cout</span> <span class="sy1" style="color:rgb(0,0,128)"><<</span> <span class="st0" style="color:rgb(255,0,0)">"PolyData address: "</span> <span class="sy1" style="color:rgb(0,0,128)"><<</span> polydata <span class="sy1" style="color:rgb(0,0,128)"><<</span> std<span class="sy4" style="color:rgb(0,128,128)">::</span><span class="me2" style="color:rgb(0,119,136)">endl</span><span class="sy4" style="color:rgb(0,128,128)">;</span>
  TestPointNormals<span class="br0" style="color:rgb(0,128,0)">(</span>polydata<span class="br0" style="color:rgb(0,128,0)">)</span><span class="sy4" style="color:rgb(0,128,128)">;</span></pre><pre class="de1" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;background-color:rgb(255,255,255);line-height:1.2em;font-size:10px;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top;text-align:left">
<span class="sy4" style="color:rgb(0,128,128)"><pre class="de1" style="color:rgb(0,0,0);padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;line-height:1.2em;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top">
  TestPointNormals<span class="br0" style="color:rgb(0,128,0)">(</span>polydata<span class="br0" style="color:rgb(0,128,0)">)</span><span class="sy4" style="color:rgb(0,128,128)">;</span></pre>
</span></pre></div><div>I expected that after first round the polydata will be changed and will contain new array for "Normals"  because output of normal generator is assigned to input polydata in the first round / polydata = normalGenerator->GetOutput(); /  </div>
<div>so second  test round should pass directly without normal generation. </div><div>But after the firt test, polydata normals are not present any more so second Test generate them  again . </div><div>So my question is : Why normals dissapeared ?  </div>
<div>The same confusion for me occured when I enabled splitting on normal generator (<span style="color:rgb(255,0,0);font-style:italic;background-color:rgb(255,255,255);font-size:10px;line-height:1.2em;text-align:left">normalGenerator->SetSplitting(1);</span>).  Inside first TestPointNormals polydata had more points as before at the end (due to splitting), but second test again work on likely unchanged polydata.  </div>
<div><br></div><div>Why two functions working on the same pointer that is changed inside each call looks unchanged ?</div><div><br></div><div>Thanks for any advice. </div><div><br></div><div><br></div><div><br></div>