Hi David!<div><br></div><div>I&#39;m not sure if the approach you suggested is adequate for my problem, since vtkPointSetNormalEstimation has no concept of inside/outside object (which in my case is necessary for computing curvatures)...</div>
<div><br></div><div>I don&#39;t know if vtkPointSetNormalOrientation in your code might help in this case?</div><div>Thanks,</div><div>Miguel<br><br><div class="gmail_quote">2011/7/24 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2011/7/24 Miguel Sotaquirá &lt;<a href="mailto:msotaquira@gmail.com">msotaquira@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi!<br>
&gt; I&#39;m using vtkPolyDataNormals to obtain point normals on my mesh. The idea is<br>
&gt; to use these normals to compute curvatures using polynomial fitting.<br>
&gt; The problem is that vtkPolyDataNormals is not giving me the correct normal<br>
&gt; orientations for all vertices. Here&#39;s an example image:<br>
&gt; <a href="http://tinypic.com/r/2dv7l36/7" target="_blank">http://tinypic.com/r/2dv7l36/7</a><br>
&gt; as you can see, for now I&#39;m using a synthetic, perfectly regular noiseless<br>
&gt; mesh!<br>
&gt; Here&#39;s my code for computing normals:<br>
&gt; vtkSmartPointer&lt;vtkPolyDataNormals&gt; normals =<br>
&gt; vtkSmartPointer&lt;vtkPolyDataNormals&gt;::New();<br>
&gt; normals-&gt;SetInput( meshdata-&gt;polydata );<br>
&gt; normals-&gt;SplittingOff();<br>
&gt; normals-&gt;ComputePointNormalsOn();<br>
&gt; normals-&gt;ComputeCellNormalsOff();<br>
&gt; normals-&gt;Update();<br>
&gt; Thanks,<br>
&gt; Miguel<br>
<br>
</div></div>I don&#39;t think there is any guarantee that normals computed by<br>
vtkPolyDataNormals are consistently oriented. A note to this effect<br>
should be added to the documentation.<br>
<br>
We wrote a EMST based normal orientation as a VTK filter here, it<br>
might be what you&#39;re looking for:<br>
<br>
<a href="http://www.midasjournal.org/browse/publication/708" target="_blank">http://www.midasjournal.org/browse/publication/708</a><br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br></div>