Pass the output of the cutter through a vtkPolyDatConnectivity filter. You&#39;ll then need to look at the orientation of the normals of each connected component. The outer faces of the cut surface are going to be oriented in another direction.<br>
<br><br><div class="gmail_quote">On Wed, May 26, 2010 at 1:40 PM, Nicolas Sarrasin <span dir="ltr">&lt;<a href="mailto:nsarrasin@phenix-systems.com">nsarrasin@phenix-systems.com</a>&gt;</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;">






<div bgcolor="#ffffff" text="#003333">
<font size="-1"><font face="Tahoma">Hi all,<br>
<br>
I recently posted a message here : </font></font><small><a href="http://www.vtk.org/pipermail/vtkusers/2010-May/109274.html" target="_blank">http://www.vtk.org/pipermail/vtkusers/2010-May/109274.html</a></small><font size="-1"><font face="Tahoma"> but didn&#39;t received any answers. <br>

I guess I wasn&#39;t clear, here comes a simplification : <br>
<br>
I use vtkCutter to get planar slices from a stl file. From the result (
vtkCutter-&gt;GetOutput() ) I get, I would like to know the orientation
of the several contours I obtained (eg which are outter and which are
inner).<br>
<br>
As previously, as preview of my problem :
<a href="http://img514.imageshack.us/img514/6747/orientationcontours.png" target="_blank">http://img514.imageshack.us/img514/6747/orientationcontours.png</a><br>
<br>
Thanks by advance for helping me.<br>
<br>
Nicolas<br>
</font></font>
<div>-- <br>


<hr style="width: 100%; min-height: 2px;">
<table style="text-align: left; font-family: Verdana; width: 500px; min-height: 110px;" border="0" cellpadding="2" cellspacing="0">
  <tbody>
    <tr>
      <td style="text-align: center; width: 80px; font-family: Verdana;"><a href="http://www.phenix-systems.com" target="_blank"><img style="border: 0px solid ; width: 75px; min-height: 66px;" alt="Logo Phenix Systems" src="cid:part1.03000508.02000706@phenix-systems.com"></a></td>

      <td style="width: 506px; font-family: Verdana;"><small style="color: rgb(51, 102, 102);"><span style="font-weight: bold;">Nicolas
Sarrasin - Ingénieur Developpement 3D CFAO</span><br style="background-color: transparent;">
      <a style="background-color: transparent; text-decoration: underline;" href="http://www.phenix-systems.com" target="_blank">Phenix systems</a><br style="background-color: transparent; font-style: italic;">
      <small><span style="background-color: transparent; font-style: italic;"> Parc
Européen d&#39;Entreprises </span><br style="background-color: transparent; font-style: italic;">
      <span style="background-color: transparent; font-style: italic;">rue
Richard Wagner - 63200 Riom FRANCE </span><br style="font-style: italic;">
      <span style="font-style: italic;">tel : +33 (0)4 73 33 45 85 |
fax : +33 (0)4 73 33 45 86 </span></small></small></td>
    </tr>
    <tr style="font-family: Verdana;">
      <td colspan="2" rowspan="1" style="width: 80px;"><font color="#36a629" size="2">Pensez environnement !</font><br>
      <font color="#36a629" size="1">N&#39;imprimez ce mail que si c&#39;est
vraiment nécessaire</font></td>
    </tr>
  </tbody>
</table>
<br style="font-family: Verdana;">
</div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>