kalwalt wrote:
As i remember and i looked at the Api it should be possible use RawVolume with MaterialDensityPair, but i can't found in the python bindings ,Maybe is implemented in another way or there is a different way? You should in theory assign the value voxel with setDensity() method and setMaterial()
This is how it should be done, but unfortunately I don't know if it is possible through Python. The problem is that PolyVox makes heavy use of templates but these are not supported by Python. So in the SWIG files for the bindings we have to explicitly define every combination of volume and voxel type which we want Python to support. You can have a look at the '*.i' files to see if it is in there? But I suspected using class types such as MaterialDensityPair is trickier than adding basic types such as int.
This is why I will try to avoid using templates in the public interface of future projects, as it makes writing bindings quite complicated. I've learned a lot of stuff from writing PolyVox!