Class CutOffCorners

Object
CutOffCorners
All Implemented Interfaces:
VoxelPattern

public class CutOffCorners extends Object implements VoxelPattern
The bounding box is filled apart from cuboids cut out of the corners
  • Constructor Details

    • CutOffCorners

      public CutOffCorners(int edgeXY, int edgeZ, Extent extent)
      Constructs a CutOffCorners pattern.
      Parameters:
      edgeXY - The size of the edge to cut off in the XY plane.
      edgeZ - The size of the edge to cut off in the Z direction.
      extent - The total extent of the bounding box.
  • Method Details

    • isPixelOn

      public boolean isPixelOn(int x, int y, int z)
      Description copied from interface: VoxelPattern
      Determines if a voxel at the given coordinates is "on" according to the pattern.
      Specified by:
      isPixelOn in interface VoxelPattern
      Parameters:
      x - the x-coordinate of the voxel
      y - the y-coordinate of the voxel
      z - the z-coordinate of the voxel
      Returns:
      true if the voxel is "on", false otherwise