Package toxi.volume
Class VolumetricSpace
java.lang.Object
toxi.volume.VolumetricSpace
- Direct Known Subclasses:
VolumetricHashMap
,VolumetricSpaceArray
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
clear()
void
final int
getIndexFor
(int x, int y, int z) final Vec3D
final Vec3D
getScale()
abstract float
getVoxelAt
(int index) final void
void
setVoxelAt
(int index, float value) void
setVoxelAt
(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)
-