How to render filled 2d slices of 3d object

don’t know if that could be related?