I've built a Visual C++ MFC application to import IGES files and then display the imported model in wireframe or shaded. My problem is that I can't change the display mode. Without selecting each shape, I want to change the display mode for all the shapes using AIS_InteractiveContext::SetDisplayMode(). The following code segment is a summary of how I do this:
AIS_Shape importedShape = ...; m_myAISContext->Display (importedShape); m_myAISContext->SetDisplayMode (AIS_Shaded);
The above method for setting the display mode for all the shapes was borrowed from one of the MFC sample applications downloaded from this site. Anyway, I can't get the shape to be displayed in shaded mode. What am I doing wrong?