Class CutOffCorners
Object
CutOffCorners
- All Implemented Interfaces:
VoxelPattern
The bounding box is filled apart from cuboids cut out of the corners
-
Constructor Summary
ConstructorsConstructorDescriptionCutOffCorners
(int edgeXY, int edgeZ, Extent extent) Constructs a CutOffCorners pattern. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isPixelOn
(int x, int y, int z) Determines if a voxel at the given coordinates is "on" according to the pattern.
-
Constructor Details
-
CutOffCorners
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 interfaceVoxelPattern
- Parameters:
x
- the x-coordinate of the voxely
- the y-coordinate of the voxelz
- the z-coordinate of the voxel- Returns:
- true if the voxel is "on", false otherwise
-