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.

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:

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