public class Isosurface extends Object
Constructor and Description |
---|
Isosurface(Consumer<float[]> vertexEmiter)
The constructor takes a functional interface of type Consumer<float[]>.
|
Modifier and Type | Method and Description |
---|---|
void |
makeFromVoxels(float[][][] voxels,
float boxSize,
float level)
Generates a mesh made out of triangular faces from voxel data consisting
of a three dimensional array of float values.
|
public Isosurface(Consumer<float[]> vertexEmiter)
vertexEmiter
- possibly a lambda expresion for processing the verticespublic void makeFromVoxels(float[][][] voxels, float boxSize, float level)
voxels
- a 3 dimensional array of boolean valuesboxSize
- the size of each cell (same width,length and height)level
- the float value used to define the isosurfaceProcessing Library voxellib by Pablo Miranda Carranza. (c) 2017