vertices positions of my polygon are not being updated

I have created a polygon shape (which is a triangle):

I gave it these vertices: b2Vec2 vertices[3] = {b2Vec2(-1.0f, 1.0f), b2Vec2(0.1f, 0.0f), b2Vec2(1.0f, 1.0f)};

Everything runs fine in the simulation, however I want to draw using my own renderer the lines that those vertices create.

However, the vertices positions are the same as when I initialized them!!! How can I get those vertices positions?
You will need to transform the points by the current position of the body:

b2Vec2 worldPoint = body->GetWorldPoint( vertexPoint );

Take a look around in the b2Body.h file for more useful functions like this and their descriptions.

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