Hi David!<div><br></div><div>I'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'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"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></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á <<a href="mailto:msotaquira@gmail.com">msotaquira@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi!<br>
> I'm using vtkPolyDataNormals to obtain point normals on my mesh. The idea is<br>
> to use these normals to compute curvatures using polynomial fitting.<br>
> The problem is that vtkPolyDataNormals is not giving me the correct normal<br>
> orientations for all vertices. Here's an example image:<br>
> <a href="http://tinypic.com/r/2dv7l36/7" target="_blank">http://tinypic.com/r/2dv7l36/7</a><br>
> as you can see, for now I'm using a synthetic, perfectly regular noiseless<br>
> mesh!<br>
> Here's my code for computing normals:<br>
> vtkSmartPointer<vtkPolyDataNormals> normals =<br>
> vtkSmartPointer<vtkPolyDataNormals>::New();<br>
> normals->SetInput( meshdata->polydata );<br>
> normals->SplittingOff();<br>
> normals->ComputePointNormalsOn();<br>
> normals->ComputeCellNormalsOff();<br>
> normals->Update();<br>
> Thanks,<br>
> Miguel<br>
<br>
</div></div>I don'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'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>