Class PointsFromMask

Object
PointsFromMask

public class PointsFromMask extends Object
Extracts list of points from a Mask.
Author:
Owen Feehan
  • Method Details

    • listFrom3i

      public static List<Point3i> listFrom3i(Mask mask)
      All points that have on state in a Mask as a list with type Point3i.
      Parameters:
      mask - the mask.
      Returns:
      a newly created list with the points.
    • listFrom2i

      public static List<Point2i> listFrom2i(Mask mask) throws CreateException
      All points that have on state in a Mask as a list with type Point2i.
      Parameters:
      mask - the mask.
      Returns:
      a newly created list with the points.
      Throws:
      CreateException - if any of the points in the mask are 3D i.e. have non-zero z-value.