I’m starting to create an script that reads and meshes smoke simulation data by dual contouring (avoids special cases, so it’s easier for me to program). Seeing as smoke data is non-binary (often used as an excuse to say that it cannot be meshed at all), I’ve opted to use a threshold design. Pretty much, if the density at a given point is greater than the threshold, it’s part of the mesh. If not, it’s empty.
How do I get the voxel data from a domain object?
Also, ideally, how can I get a list of all smoke domains?
I plan to turn the interface into something similar to that of CubeSurfer in the future, so any info regarding the process behind that is also welcome…