Setting AIS context and display

I am a starter and want to know how to display models. As i dont know much about mfcs, it becomes difficult.

Can anybody help me how to initialise the AIS context from the scratch so that i can display some simple model(say a box or cylinder), it will be great.

TIA

Hugues's picture

Hi,

You should have a look at the samples that comes with Open Cascade.
For example the MFC sample "AIS Basic". Source code is provided in ...occ_dir\samples\standard\mfc\04_AISBasic.

I advise to not use these horrible MFCs, it will slow down your understanding. Use Qt instead. The problem is that there is no non-commercial version for Windows. But if you use Linux, Qt is available as a free edition.