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 TypeMethodDescriptionvoid
expand
(int expandQuantity) getVoxel
(int x, int y, int z) float
getVoxelAlphaFloat
(int x, int y, int z) org.joml.Vector3d
getVoxelPosition
(int x, int y, int z) void
setVoxelsByAlphaXY
(int gridZ, byte[] bufferArray) void
setVoxelsByAlphaXZ
(int gridY, byte[] bufferArray) void
setVoxelsByAlphaYZ
(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)
-