Display priority

I want to display a point in a box.
But the shaded box hides the point.

Is there any way to enable this?

Jérome Dufaure's picture

hello
In order to see your point inside the box, you can display your box in wireframe mode or add transparency to your shaded box.
good luck
jerome

mir7942's picture

Thank you for your reply.
But I want to see my point inside the box in shaded mode.
For example, CAD systems, such as CATIA V5, Solid Works and etc, implements this to show datums and sketch entities hidden by solid body.

kim wj's picture

Handle_AIS_InteractiveContext ctxt=new ...

//display box
Handle_AIS_Shape ais_box=new ...
ctxt->Display(ais_box);

//draw point
Visual3d_TransientManager::BeginDraw();
Handle_Graphic3d_Structure str_pt=new...
Visual3d_TransientManager::DrawStructure(str_pt);

//update view
viewer->Update();

This will make the point always displayed on top of your screen, regardless of shaded or wireframe mode.