DiscussionsIssue archiveOther usage issues

Archived discussion

display a TopoDs Face

Other usage issuesWed, 04/14/2004 - 17:172 replies

Browse this forum
QuestionAuthor

I want to display TopoDsFace using the sample of 2d selection,i have do my AISContext but that don't work
thanks for all

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi momo,

TopoDS_Face is a Topological entity which will not work in a 2D Context. You should try to start with a topological example, or use the ImportExport example.

To display a Shape on the AISContext use the following:

myAISContext->Display(new AIS_Shape(theFace));

Hope that helps,

Commenter-1

02Commenter-2

thanks for your help
sincerely Commenter-2