Thanks for the very nice resources that can be found here, I am just starting to read, but I can’t wait to see if there is not already a solution.
Just to give a little bit of Context, I am working on synthesis of brain MRI data. The brain can be describe as surfaces and the MRI acquisition is a volumetric measure: a 3D voxel grid. Voxel is used as extension of image pixel, but it has a physical dimension (mm^3) : it is a small cube volume that gives the 3D volume grid resolution.
In order to simulate a MRI acquisition from a given brain (defined as several surfaces) I need to compute a partial volume map from a close surface mesh. The partial volume map is just a 3D volume (defined on a 3D voxel grid) where each voxel value are 1 inside the mesh, 0 outside, and pv in [0 1] if the mesh is intersecting the voxel.
How to compute pv: the partial volume of a single voxel ?
I think it is closely related to this discusion but instead of the intersect with a plane I need the intersect with a cube (or all cubes of the 3D grid)
may be it is not too much work for @enki to add a new ganja.js example …
I am using the code describe is this article Toblerone: Surface-Based Partial Volume Estimation | IEEE Journals & Magazine | IEEE Xplore
but it is only an approximation, and it takes quite a lot of computing time, (finding inside an outside of a surface with classical representation leads to complicated algorithm). So I suspect PGA would give an exact an effective solution, I would be very interested to compare it.