How would I "inflate" a polygon? That is, I want to do something similar to this:

There are a couple of libraries one can use (Also usable for 3D data sets).
One can also find corresponding publications for these libraries to understand the algorithms in more detail.
The last one has the least dependencies and is self-contained and can read in .obj files.
Best wishes, Stephan