public class CylinderVolumeMask
extends java.lang.Object
Constructor and Description |
---|
CylinderVolumeMask(int sizeX,
int sizeY,
int xcenter,
int ycenter,
double radius) |
Modifier and Type | Method and Description |
---|---|
void |
applyToGrid(Grid2D input) |
void |
applyToGrid(Grid3D input) |
void |
applyToGrid(Grid3D input,
int start,
int end,
boolean keepRest)
Applies cylinder in a limited z-Range
|
static void |
main(java.lang.String[] args) |
public CylinderVolumeMask(int sizeX, int sizeY, int xcenter, int ycenter, double radius)
public void applyToGrid(Grid3D input)
public void applyToGrid(Grid3D input, int start, int end, boolean keepRest)
input
- input gridstart
- start z-coord in volume coordinatesend
- end z-coord in volume coordinateskeepRest
- if true leaves the rest of the volume as is, otherwise sets to
zeropublic void applyToGrid(Grid2D input)
public static void main(java.lang.String[] args)