Thanks for your quick response.<div>I have tried the method before, but I could only display the contours, and could not get surface.</div><div> The following code you pointed out generated the PolyData explicitly, but the ContourWidget create the PolyData implicitly, I don&#39;t know how to check if the contours are stored in the PolyData correctly and there were points and lines, no</div>
<div>vertex,cells in the PolyData.</div><div><br><br><div class="gmail_quote">On Sun, Oct 24, 2010 at 11:45 PM, David Doria-2-3 [via VTK] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=3234447&i=0" target="_top" rel="nofollow">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">

<div class="gmail_quote">On Sun, Oct 24, 2010 at 11:43 AM, shengweng <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3234426&amp;i=0" rel="nofollow" target="_blank" link="external">[hidden email]</a>&gt;</span> wrote:<br>

<blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><br>
I got 2-D contours manually from all slices using vtkContourWidget and the<br>
contours have vtkPolyData format, which include points and lines, no<br>
vertex,cells. How can I create the surface from the 2-D contours? Thanks<br></blockquote><div><br></div><div>Is this what you&#39;re trying to do?</div><div><br></div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ContoursToSurface</a><br clear="all">

<br></div><div class="gmail_quote"><div>David </div></div>
<br></div>_______________________________________________
<br>Powered by <a href="http://www.kitware.com?by-user=t" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" 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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br><br>
<hr noshade size="1" color="#cccccc">
<div style="color:#666666;font:11px tahoma,geneva,helvetica,arial,sans-serif">
View message @ <a href="http://vtk.1045678.n5.nabble.com/Create-3-D-surface-from-2-D-contours-of-slices-tp3234422p3234426.html?by-user=t" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/Create-3-D-surface-from-2-D-contours-of-slices-tp3234422p3234426.html</a>

<br>To unsubscribe from Create 3-D surface from 2-D contours of slices, <a href="http://vtk.1045678.n5.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&amp;node=3234422&amp;code=c2hlbmd3ZW4uZ3VvQGdtYWlsLmNvbXwzMjM0NDIyfC0xMDY1ODM0MjM=&by-user=t" target="_blank" rel="nofollow" link="external">click here</a>.
</div>
<br>
</blockquote></div><br><br>
</div>

<br><hr align="left" width="300">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Create-3-D-surface-from-2-D-contours-of-slices-tp3234422p3234447.html">Re: Create 3-D surface from 2-D contours of slices</a><br>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br>