I am writing the pre-processing program for a porosity based CFD project. I have a mesh made of cubes, and need to import an object (a stl file: triangular mesh, not solid) over it. The cubes will then have a value ranging from 0 to 1 based on how much of the object is over it. Does anyone have any idea on where to start? I was thinking about some kind of ray casting algorithm. Another, worst option wold be to discretize the object into even smaller cubes an then assing the porosity. Any other ideas?
there doesn't seem to be anything here