Graphics/Testing/Tcl/TestRuledSurface*.tcl<br><br>The difference from the tests is that you need to set &quot;ClosedSurfaceOn()&quot;. <br><br>Also, if the number of points in each of the contours is different or not in correspondance, you&#39;ll want to resample the contours by setting &quot;SetRuledModeToResample()&quot;.<br>
<br>And there are ways to do this without using vtkRuledSurfaceFilter as well... <br><br>You could rasterize the contours (vtkPolygon::PointInPolygon), treat the result as an image, run an AntiAlias filter (ITK) and then triangulate by generating an isosurface with marching cubes.<br>
<br><br><br><br><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 10:05 PM, Yogish Mallya <span dir="ltr">&lt;<a href="mailto:mallyayogish@yahoo.co.in">mallyayogish@yahoo.co.in</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;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<br><br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><br>
<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">
<p style="margin: 0in 0in 10pt;"><font size="3" face="Calibri">Hi All,</font> 
</p><p style="margin: 0in 0in 10pt;"><font size="3"><font face="Calibri">I have a text file containing a set of points representing three parallel contours in Z-direction (text file is attached in the mail). <span> </span>The point set in the file is ordered. <span> </span>I want to generate a triangular surface mesh from these contours. vtkRuledSurfaceFilter seems to be the correct solution. It would be great if somebody can share a c++ example or steps on how to use this filter ? <span> </span></font></font> 
</p><p style="margin: 0in 0in 10pt;"><font size="3" face="Calibri">Regards,</font> 
</p><p style="margin: 0in 0in 10pt;"><font size="3" face="Calibri">Yogish</font></p></td></tr></tbody></table></div></blockquote></td></tr></tbody></table><br><div class="hm"><br>
      <hr size="1"> Yahoo! recommends that you upgrade to the new and safer <a href="http://in.rd.yahoo.com/tagline_ie8_1/*http://downloads.yahoo.com/in/internetexplorer/" target="_blank"> Internet Explorer 8</a>.</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><br clear="all"><br>-- <br>Karthik Krishnan<br>R&amp;D Engineer,<br>Kitware Inc.<br>Ph: 518 881 4919<br>Fax: 518 371 4573<br>