Displaying Bounding Box of AIS_SHAPE

I can get the bounding box of an Shape with 

 
shape->BoundingBox()

but how can I display the bounding box in my current viewer?

Kirill Gavrilov's picture

If you just want to see bounding box for debugging purposes - use display mode 2 for AIS_Shape, or set Aspect_TOHM_BOUNDBOX as highlight method.

pload MODELING VISUALIZATION
psphere s 1
vinit View1
# use bounding box for highlithing
vdisplay -dispMode 1 -hiMode 2 s
vfit
vmoveto 200 200
# force bounding box presentation
vbounding s