two bodies with same fixture touch detection

hi,
I am new to box2d.(using cocos2d box2d application)
I am drawing lines in cctouchmoved. I want to perform some action when current line has touched any previously drawn lines.
this is the box2d code for line


b2BodyDef bd;
bd.type = b2_staticBody;
bd.position.Set(0, 0);
b2Body* body = world->CreateBody(&bd);


b2PolygonShape shape;
shape.SetAsEdge(b2Vec2(start.x, start.y), b2Vec2(end.x, end.y));

_lineFixture = body->CreateFixture(&shape,0.0f);
Box2D has no feature for this, so you will need to check yourself if the segment about to be drawn will cross over an existing segment. You might find this helpful http://softsurfer.com/Archive/algorithm ... _0104B.htm
Thank you. you saved my time i have searched almost all the pages having box2d in it. Now its clear i can think of something else.

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