<div dir="ltr">that doesn&#39;t  work, in fact that was the first thing I did and I was getting a segmentation fault, but I found a solution:<div><br></div><div style>1- add an observer to EndInteractionEvent and set the ClosedLoop to True when this event is fired</div>

<div style>    w.AddObserver(&#39;EndInteractionEvent&#39;, lambda o, e: w.GetContourRepresentation().SetClosedLoop(1))<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 24, 2013 at 9:31 AM, Yumin Yuan <span dir="ltr">&lt;<a href="mailto:yumin.yuan@kitware.com" target="_blank">yumin.yuan@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">try this:<br>
contourWidget-&gt;GetContourRepresentation()-&gt;ClosedLoopOn();<br>
<br>
Yumin<br>
<div class="im"><br>
On Thu, Jan 24, 2013 at 8:46 AM, José M. Rodriguez Bacallao<br>
&lt;<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>&gt; wrote:<br>
&gt; hi hols, how do I force the making closed contours with vtkCountourWidget?<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
</blockquote></div><br></div>