Creating a body's collision from a calculated list of points

I'm rather new to Box2D, and I have made some code that calculates the points where a texture should be colliding (so for instance, for a texture with a circle I get a circular shape, for a texture with a character I get the border around the character). How can I create a body with that collision information?

Original thread: https://box2d.org/forum/viewtopic.php?t=9146