Hello,<br><br>so reading the file is the easy part. For that, you want to use vtkImageReader2 (see documentation).<br>As for the normal of the boundary, the first question is: how is defined this boundary?<br>If this is defined as an iso-surface of some function, then you can use the vtkMarchingContourFilter object to find it and then vtkPolyDataNormals to get the normals of your surface it should work. If you get the mesh by any other means, you can still use vtkPolyDataNormals to get the normals to the mesh.
<br><br>Pierre<br><br><div><span class="gmail_quote">On 10/28/07, <b class="gmail_sendername">Fabian Braennstroem</b> &lt;<a href="mailto:f.braennstroem@gmx.de">f.braennstroem@gmx.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>me again...<br>it seems that noone has an idea ... or is it just a stupid question!?<br>Fabian<br><br><br>Fabian Braennstroem wrote:<br><br>&gt; Hi,<br>&gt;<br>&gt; I would like to use python-vtk to calculate the vector components of
<br>&gt; an inlet velocity for computational fluid dynamics.<br>&gt; For this I would have to read an ensight or vtk formated mesh and<br>&gt; calculate the normal direction of a certain boundary, e.g. &#39;inlet&#39;.<br>
&gt; Does anyone knows, if I can do this with python-vtk, or better, does<br>&gt; anyone has such a small script already? Would be nice :-)<br>&gt;<br><br><br>_______________________________________________<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Barbier de Reuille Pierre