Hi

Can i draw a line with two points say "gp_Pnt aPnt1(0 , 0 , 0)" and "gp_Pnt aPnt2(10. , 30 , 0)" and show it in the AIS_Context.

Thank you for the help.

Saneesh Kumar's picture

Sorry for Typing the wrong Subject

Saneesh Kumar's picture

Thank you I got it

gp_Pnt aPnt1(0 , 0 , 0);
gp_Pnt aPnt2(10. , 30 , 0);
BRepBuilderAPI_MakeEdge myEdge(aPnt1, aPnt2);
Handle(AIS_Shape) lineShape = new AIS_Shape(myEdge.Shape());
myAISContext->Display(lineShape);