Class DeriveObjectFromPoints

Object
DeriveObjectFromPoints

public class DeriveObjectFromPoints extends Object
Derive an ObjectMask by incrementally adding points.
Author:
Owen Feehan
  • Constructor Details

    • DeriveObjectFromPoints

      public DeriveObjectFromPoints()
  • Method Details

    • add

      public void add(ReadableTuple3i point)
      Adds a point to the object.
      Parameters:
      point - the point to add.
    • deriveObject

      public Optional<ObjectMask> deriveObject()
      Derives an ObjectMask that includes all points that were previously added.

      The bounding-box of the created ObjectMask will fit the points as tightly as possible.

      Returns:
      a newly created ObjectMask if at least one point was added. Otherwise Optional.empty().