How to display a TopoDS_Shape object?

can somebody tell me please?

Hugues's picture

Call AIS_InteractiveContext::Display() like this :

ais_context->Display (new AIS_Shape (your_shape));

Ankit's picture

but what's the constructor for AIS_InteractiveContext ... and also .. I was unable to find a DISPLAY member function in this class which has AIS_Shape object as a parameter ... please tell me more !

Hugues's picture

You should look at the samples packaged with OpenCascade library, especially the Qt-based sample. You will learn good basics from the source code of these samples.

The accurate class documentation is in the CDL files you can find from the ros/src/ directory.