Package com.gaia3d.basic.geometry.voxel
Class VoxelGrid3D
java.lang.Object
com.gaia3d.basic.geometry.voxel.VoxelGrid3D
-
Constructor Summary
ConstructorsConstructorDescriptionVoxelGrid3D(int gridsCountX, int gridsCountY, int gridsCountZ, GaiaBoundingBox boundingBox) -
Method Summary
Modifier and TypeMethodDescriptionvoidexpand(int expandQuantity) getVoxel(int x, int y, int z) floatgetVoxelAlphaFloat(int x, int y, int z) org.joml.Vector3dgetVoxelPosition(int x, int y, int z) voidsetVoxelsByAlphaXY(int gridZ, byte[] bufferArray) voidsetVoxelsByAlphaXZ(int gridY, byte[] bufferArray) voidsetVoxelsByAlphaYZ(int gridX, byte[] bufferArray)
-
Constructor Details
-
VoxelGrid3D
-
-
Method Details
-
getVoxel
-
getVoxelAlphaFloat
public float getVoxelAlphaFloat(int x, int y, int z) -
setVoxelsByAlphaXY
public void setVoxelsByAlphaXY(int gridZ, byte[] bufferArray) -
setVoxelsByAlphaXZ
public void setVoxelsByAlphaXZ(int gridY, byte[] bufferArray) -
setVoxelsByAlphaYZ
public void setVoxelsByAlphaYZ(int gridX, byte[] bufferArray) -
getVoxelPosition
public org.joml.Vector3d getVoxelPosition(int x, int y, int z) -
expand
public void expand(int expandQuantity)
-