Interface VoxelPattern

All Known Implementing Classes:
CutOffCorners

public interface VoxelPattern
Defines a pattern of voxels in a 3D space.

This interface provides a method to determine whether a voxel at a given coordinate is "on" or "off" according to the defined pattern.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isPixelOn(int x, int y, int z)
    Determines if a voxel at the given coordinates is "on" according to the pattern.
  • Method Details

    • isPixelOn

      boolean isPixelOn(int x, int y, int z)
      Determines if a voxel at the given coordinates is "on" according to the pattern.
      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