I have a ImageResliceVTKWidget. I can move across a series of medical images. Say I am moving from left to right between images. To create a contour on a certain image, I use the vtkContourWidget. I click multiple points and create a closed loop.
First I create a large circle, then move to the right. Then I create a smaller circle. Then move to the right. Then create a large circle again.
I would like to create a volume using these contours. So I use the vtkAppendPolyData. I do something like…
I create a vtkDelaunay3D object and then do vtkDelaunay3D.SetInputData(vtkAppendPolyData.GetOuput()).
Then I create the mapper and actor the usual way.
When I render the actor on ImagePlanesVTKWidget, I see a cylinder like object. I seems as if the first and last contours were used to create the render and it ignored the second contour (the smaller circle). What I wanted was a shape like an hour glass. How would I accomplish this?
Any help would be greatly appreciated.