DiscussionsIssue archiveOther usage issues

Archived discussion

Hi

Other usage issuesFri, 05/27/2011 - 08:292 replies

Browse this forum
QuestionAuthor

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.

01Author

Sorry for Typing the wrong Subject

02Author

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);