How to calculate relative density inside a box?

Hey Guys,

I created a powder recoating simulation. I need help to calculate the relative density of the powder in the box after recoating. So i need to know how much of the open box volume is filled with spheres. Can someone help me with this?

BoxRecoatingV1 gh.gh (30.6 KB)
BoxRecoatingV1.3dm (90.6 KB)

I guess you would first have to check which spheres are actually contained in the box.
Then you could probably subtract the cumulative volume of the contained spheres from the box volume to see how much isn’t covered?

1 Like