the mitkClippedBoundsSurfaceCalculator needs to be fixed so that intersection points can be determined when the PlaneGeometry and the Image have the same geometry.
Problem:
In the case when the 3D geometry has only one slice it is like a PlaneGeometry. Currently we are determing the intersection point of the lines of the bounding box of the image and the PlaneGeometry. In this case the lines are points and the method mitk::PlaneGeometry::IntersectionPoint can only determine the intersection point when a line is intersecting the PlaneGeometry.
Proposed solution:
- Check if line is actually a point:
- If line is a point:
- Check if point is on the PlaneGeometry:
- If point is on the plane then take point as intersection point
- Check if point is on the PlaneGeometry:
- If line is a point: