public class BoundaryFaces extends Object
Constructor and Description |
---|
BoundaryFaces(Consumer<float[]> vertexEmiter)
The constructor takes a functional interface of type Consumer<float[]>.
|
Modifier and Type | Method and Description |
---|---|
void |
makeQuadsFromVoxels(boolean[][][] voxels,
float boxSize)
Generates a mesh made out of quads from voxel data in the form of a
three dimensional array of booleans.
|
public BoundaryFaces(Consumer<float[]> vertexEmiter)
vertexEmiter
- possibly a lambda expresion for processing the verticespublic void makeQuadsFromVoxels(boolean[][][] voxels, float boxSize)
voxels
- a 3 dimensional array of boolean valuesboxSize
- the size of each cell (same width,length and height)Processing Library voxellib by Pablo Miranda Carranza. (c) 2017