Class CountVoxelsIntersectingObjects

Object
CountVoxelsIntersectingObjects

public class CountVoxelsIntersectingObjects extends Object
Like CountVoxelsIntersectingBounded but specifically counts areas of intersection between two ObjectMasks.
Author:
Owen Feehan
  • Method Details

    • hasIntersectingVoxels

      public static boolean hasIntersectingVoxels(ObjectMask object1, ObjectMask object2)
      Determines whether there are any intersecting voxels on two object-masks.

      This is an immutable operation.

      The algorithm exits as soon as an intersecting voxel is encountered i.e. as early as possible.

      Parameters:
      object1 - first-object
      object2 - second-object
      Returns:
      true if at least one voxel exists that is on in both object-masks.
    • countIntersectingVoxels

      public static int countIntersectingVoxels(ObjectMask object1, ObjectMask object2)
      Counts the number of intersecting-voxels between two object-masks.

      This is an immutable operation.

      Parameters:
      object1 - first-object
      object2 - second-object
      Returns:
      number of on-voxels the two object-masks have in common.