
Fri, 05/27/2011 - 08:29
Forums:
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.
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.
Fri, 05/27/2011 - 08:30
Sorry for Typing the wrong Subject
Fri, 05/27/2011 - 08:54
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);