[vtkusers] closed contours with vtkCountourWidget

José M. Rodriguez Bacallao jmrbcu at gmail.com
Thu Jan 24 09:41:10 EST 2013


that doesn't  work, in fact that was the first thing I did and I was
getting a segmentation fault, but I found a solution:

1- add an observer to EndInteractionEvent and set the ClosedLoop to True
when this event is fired
    w.AddObserver('EndInteractionEvent', lambda o, e:
w.GetContourRepresentation().SetClosedLoop(1))


On Thu, Jan 24, 2013 at 9:31 AM, Yumin Yuan <yumin.yuan at kitware.com> wrote:

> try this:
> contourWidget->GetContourRepresentation()->ClosedLoopOn();
>
> Yumin
>
> On Thu, Jan 24, 2013 at 8:46 AM, José M. Rodriguez Bacallao
> <jmrbcu at gmail.com> wrote:
> > hi hols, how do I force the making closed contours with
> vtkCountourWidget?
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130124/226f200c/attachment.htm>


More information about the vtkusers mailing list