Package toxi.volume
Class VolumetricSpace
java.lang.Object
toxi.volume.VolumetricSpace
- Direct Known Subclasses:
VolumetricHashMap,VolumetricSpaceArray
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclear()voidfinal intgetIndexFor(int x, int y, int z) final Vec3Dfinal Vec3DgetScale()abstract floatgetVoxelAt(int index) final voidvoidsetVoxelAt(int index, float value) voidsetVoxelAt(int x, int y, int z, float value)
-
Field Details
-
resX
public final int resX -
resY
public final int resY -
resZ
public final int resZ -
resX1
public final int resX1 -
resY1
public final int resY1 -
resZ1
public final int resZ1 -
sliceRes
public final int sliceRes -
scale
-
halfScale
-
voxelSize
-
numCells
public final int numCells
-
-
Constructor Details
-
VolumetricSpace
-
-
Method Details
-
clear
public abstract void clear() -
closeSides
public void closeSides() -
getIndexFor
public final int getIndexFor(int x, int y, int z) -
getResolution
-
getScale
- Returns:
- the scale
-
getVoxelAt
public abstract float getVoxelAt(int index) -
setScale
- Parameters:
scale- the scale to set
-
setVoxelAt
public void setVoxelAt(int index, float value) -
setVoxelAt
public void setVoxelAt(int x, int y, int z, float value)
-