How to cut a part of image by having a polygon?

I have an image of human with transparent background. Are there a way to create two physical bodies - one arm, and one body without that arm.

I have coordinates for polygon of each of these two parts. Trivial way gave me two completely same images, connected with Joint, but in physical view, they were correct - separate body, separate arm.

How to cut a part of image by having a polygon? [import]uid: 141449 topic_id: 24884 reply_id: 324884[/import]

You can create polygons from a table of values if that’s what you mean?

Shape1 = { -15,-10, 15,-10, 15,15, -15,15 }  
  
Shape2 = { -15, -15,   
 15, -15,   
 15, -10,  
 -15, -10}  
  
physics.addBody( player1, "dynamic",  
 { density=1, friction=0, bounce=0, shape=Shape1 },  
 { density=1, friction=0, bounce=0, shape=Shape2 }  
)  

[import]uid: 67933 topic_id: 24884 reply_id: 100974[/import]

I will rephrase:

Let’s say I have an image with a baloon and a triangle. (One image!)

How do I make so there are two objects on screen — one baloon, and second is triangle. [import]uid: 141449 topic_id: 24884 reply_id: 101398[/import]