shd wrote:
I'd like to use PolyVox to store all my voxels, although not every one of them has to be processed by marching cubes.
So, first question:
Is it possible to ignore certain kinds of materials during mesh generation?
No, that's not currently possible. However, you could take the generated mesh, iterate over the triangles, and delete those which have a vertex with the material you don't want. Maybe that's good enough for you? What are you trying to achieve?
shd wrote:
It would be useful to have possibility for:
a) registering callbacks onMaterialMeshExtract, called for every voxel with given material
There isn't this functioanlity. I have thought in the past it might be useful to have a new surface extractor which, instead of actually generating a mesh, would just generate a list of voxels lying on the border between solid and empty space. For example, you could then take that list of voxels and render a user-supplied model at each point instead of a cube. I haven't really looked at this any further though.
shd wrote:
b) or just listing voxels from volume *by material*
I guess you can find this information yourself, just by iterating over the volume, looking at each voxel, and keeping track of what you find?