public class VoxelDataFromSlices extends VoxelDataAdapter
Constructor and Description |
---|
VoxelDataFromSlices(PApplet processing,
int w,
int h,
int d)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
increaseLevel()
increases the level at which calls to set() will operate.
|
void |
resetLevel()
It resets the level at which calls to set() work to 0.
|
void |
set(int x,
int y,
float val)
Used to set values of individual voxels at the current level
|
calculate, draw, saveAsStl, set
public VoxelDataFromSlices(PApplet processing, int w, int h, int d)
processing
- the PAplet used for drawingw
- width in voxelsh
- height in voxelsd
- depth in voxelspublic void set(int x, int y, float val)
x
- the x coordinate of the voxel to sety
- the y coordinate of the voxel to setval
- the value to set the voxel topublic boolean increaseLevel()
public void resetLevel()
Processing Library voxellib by Pablo Miranda Carranza. (c) 2017