Contour target area for MLC leaf positioning calculation

Operating system: linux
Slicer version: Preview

There are 2 points which define a normal vector 0N (yellow) of the plane (green) for DICOM CT and RTSTRUCT contour data. I can calculate a perpendicular projection of each point of target contour (red) into the plane.

image

Another task is to get only external points of projected data for perimeter and area calculation (picture below). The projection plane basically an isocenter plane.

Is there ready made vtk filter or algorithm for that purpose?

For example:

  1. Input - list of points coordinates on the plane (x1, y1) (x2, y2) … (xn, yn)
  2. Output - vtkPolyData closed planar polygon of the perimeter, or something like that

image

After some digging through the VTK examples site, i have found a solution for that issue. vtkPointsProjectedHull allows to calculate convex hull of the points.

2 Likes