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=("");
Scale=1;//[.5:.001:1.5]
module ThreeDfill(){
color("dodgerblue")
hull(){
intersection(){
sphere(600);
import(path_to_stl_file,convexity=6);
}}}
scale([Scale,Scale,Scale])
ThreeDfill();
color("red")
import(path_to_stl_file,convexity=6);
I also added a way to scale the fill so it can be fit to size:
There are a few things I am going to add like the ability to subtract the original object from the fill, it will be pretty simple to modify.