Package toxi.volume
Class VolumetricHashMap
java.lang.Object
toxi.volume.VolumetricSpace
toxi.volume.VolumetricHashMap
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
void
getData()
float
final float
getVoxelAt
(int index) final float
getVoxelAt
(int x, int y, int z) void
setVolumeSidesTo
(float density) final void
setVoxelAt
(int index, float value) final void
setVoxelAt
(int x, int y, int z, float value) Methods inherited from class toxi.volume.VolumetricSpace
getIndexFor, getResolution, getScale, setScale
-
Constructor Details
-
VolumetricHashMap
-
-
Method Details
-
clear
public void clear()- Specified by:
clear
in classVolumetricSpace
-
closeSides
public void closeSides()- Overrides:
closeSides
in classVolumetricSpace
-
getData
-
getDensity
public float getDensity() -
getVoxelAt
public final float getVoxelAt(int index) - Specified by:
getVoxelAt
in classVolumetricSpace
-
getVoxelAt
public final float getVoxelAt(int x, int y, int z) -
setVolumeSidesTo
public void setVolumeSidesTo(float density) -
setVoxelAt
public final void setVoxelAt(int index, float value) - Overrides:
setVoxelAt
in classVolumetricSpace
-
setVoxelAt
public final void setVoxelAt(int x, int y, int z, float value) - Overrides:
setVoxelAt
in classVolumetricSpace
-