Here is code to create a b2LoopShape. It's incredibly useful for making ground in a level. Allows you to connect many points using lines to form a seamless piece of ground. b2LoopShape is never dynamic, meant for making ground in levels.
Example Image:

The lines and curves in that level were made with b2LoopShape.
Code:
b2BodyDef bodyDef;
bodyDef.position.Set(0, 0);
// Tell the physics world to create the body
body = world->CreateBody(&bodyDef);
b2LoopShape shape;
//Make a list of points for the ground.
b2Vec2 list[] = {b2Vec2(0,100), b2Vec2(100,100)};
shape.Create(list, 2);
b2FixtureDef loopShapeDef;
loopShapeDef.shape = &shape;
body->CreateFixture(&loopShapeDef);
bodyDef.position.Set(0, 0);
// Tell the physics world to create the body
body = world->CreateBody(&bodyDef);
b2LoopShape shape;
//Make a list of points for the ground.
b2Vec2 list[] = {b2Vec2(0,100), b2Vec2(100,100)};
shape.Create(list, 2);
b2FixtureDef loopShapeDef;
loopShapeDef.shape = &shape;
body->CreateFixture(&loopShapeDef);
Example Image:
The lines and curves in that level were made with b2LoopShape.