Recently I needed to fill the inside of a hollow print, the fill() option works for 2d objects but not for 3d objects, after some experimentation I came up with an easy way to fill the space inside of an object.
Here is the code:
//
path_to_stl_file=("