Hello!
I am rendering DICOM contours (Yes, against advice to use existing implementations). At the moment, I am creating vtkPolyData
using vtkPoints
and vtkCellArray
from the 3D-point data extracted from DICOM. Then, I put this data through vtkLinearExtrusionFilter
, vtkPolyDataToImageStencil
and vtkImageStencil
to retrieve vtkImageData
, which I render using a vtkImageViewer2
. This works, but now I want to fill / color the area of this closed polyline.
I might be able to do so using an approach similar to vtkPolygon::PointInPolygon()
, potentially using vtkContourLoopExtraction
. Yet, I don’t have vtkPolygon
-data but it might be extractable somewhere along the pipeline?
My question is different from How to color or fill the selected contour?, as I don’t use vtkContourWidget
.
My question(s):
- Where in my pipeline would I include the filling/coloring of the area enclosed by the contour?
- How would I do that?
Any help is appreciated. Cheers!
Sebastian