Sorry for Typing the wrong Subject
Archived discussion
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.
Discussion
2 archived replies
Posts are displayed in their archived order.
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);