<br><br><div class="gmail_quote">On Mon, Jun 8, 2009 at 9:30 AM, vtklearny <span dir="ltr"><<a href="mailto:msjean@gmx.de">msjean@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello there,<br>
<br>
I'm still new to vtk and after some point manipulation I have to<br>
modify/update the normals.<br>
<br>
I found out that I can access the vtkCells , giving me 3 points in return.<br>
Then I can calculate a normal vector.<br>
<br>
But how do I set the vtkCell's(which is also a vtkTriangle) normal to my<br>
calculated one ?<br>
Is there something like this? : vtkCellData->setCellsNormal(cellId, normal);<br>
<br>
I thought there was a way to invoke automatic normal computation but never<br>
saw that working.<br>
<br>
Thanks for any help.<br>
I did not find an answer to this anywhere.<br>
<br>
the vtklearny<br></blockquote></div><br>I just put this up on the wiki: <a href="http://www.vtk.org/Wiki/Point_and_Cell_Normals">http://www.vtk.org/Wiki/Point_and_Cell_Normals</a><br>
<br>
Is this what you are looking for?<br>
<br>The vtkPolyDataNormals class (demonstrated here: <a href="http://www.vtk.org/Wiki/Extract_Normals_from_a_Polydata">http://www.vtk.org/Wiki/Extract_Normals_from_a_Polydata</a> ) does what it sounds like you are trying to do automatically.<br>
<br>Let us know if you have any more problems.<br><br clear="all">Thanks,<br><br>David<br>