[vtkusers] Problems with massProperties at getting area from ContourWidget

David Doria daviddoria at gmail.com
Mon Dec 3 16:30:23 EST 2012


On Mon, Dec 3, 2012 at 4:15 PM, Rodrigo Lovera <lobo.theslayer at gmail.com> wrote:
> I see area changes as I modified the form of the contour and close the
> render window, correct me if there's something wrong please and if you give
> me some guide on that  GetContourRepresentationAsPolyData() if there's a way
> to use it in a more direct way.
>
> Thx for your help
>
> Regards, Rodrigo

You need to handle an event of the widget to output the answer
interactive. It almost never makes sense to place code after the
interactor->Start(); call.

http://www.vtk.org/doc/nightly/html/classvtkContourWidget.html#details

Perhaps something like this will get you started:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/SphereWidgetEvents

David



More information about the vtkusers mailing list