Page MenuHomePhabricator

Images are not rendered anymore in 3-d window
Closed, ResolvedPublic

Description

The upgrade of VTK v9.2.6 to v9.3 broke the mitk::PlaneGeometryDataToSurfaceFilter, which is not able to generate the plane surfaces for the image to be rendered on in 3-d.

The planes are generated by cutting a cube by a plane and triangulating the intersection. A workaround was used via vtkStripper that is no longer functional. Instead, we can use the intended vtkContourTriangulator filter, which also replaces our current subsequent usage of vtkTriangleFilter.

A tricky detail is to disable triangle generation of the vtkCutter, which does not always work as input for vtkContourTriangulator. Explicitly disabling triangle generation will result in a single, concise contour appropriate as input.