Give lines a mass

Hello,

I'm using b2PolygonShape with SetAsEdge to model some ropes and I was wondering if there was a way to give this shape a mass by giving a thickness parameter to the lines. Right now, a zero mass is hardcoded in b2PolygonShape with 2 vertices. I tried to setup a mass and inertia but it didn't seem to work, am I missing something?

Thanks,
Remi Gillig.
Why not use rectangles? After all, a thick line segment is not much different than a rectangle.
That's what I'll be using I think along with collision filters to still keep my line collisions (because I need them for other purposes). Thanks!

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