display a TopoDs Face

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

Udo's picture

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,


momo's picture

thanks for your help
sincerely momo