Package toxi.volume
Class VolumetricHashMap
java.lang.Object
toxi.volume.VolumetricSpace
toxi.volume.VolumetricHashMap
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidgetData()floatfinal floatgetVoxelAt(int index) final floatgetVoxelAt(int x, int y, int z) voidsetVolumeSidesTo(float density) final voidsetVoxelAt(int index, float value) final voidsetVoxelAt(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:
clearin classVolumetricSpace
-
closeSides
public void closeSides()- Overrides:
closeSidesin classVolumetricSpace
-
getData
-
getDensity
public float getDensity() -
getVoxelAt
public final float getVoxelAt(int index) - Specified by:
getVoxelAtin 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:
setVoxelAtin classVolumetricSpace
-
setVoxelAt
public final void setVoxelAt(int x, int y, int z, float value) - Overrides:
setVoxelAtin classVolumetricSpace
-