I use AIS_Shape to display temporary geometries and prohibit these temporary geometries from being selected, but they are always selected now. How can geometry not be selected? Thanks a lot!
Kirill Gavrilov Tue, 07/06/2021 - 13:05
You may try the following options:
Specify -1 as selection mode while displaying the shape.
Tue, 07/06/2021 - 13:05
You may try the following options:
Handle(AIS_Shape) thePrs;
Handle(AIS_InteractiveContext) theCtx;
theCtx->Display (thePrs, AIS_Shaded, -1, false);
Handle(AIS_InteractiveContext) theCtx;
theCtx->SetAutoActivateSelection (false);
Handle(AIS_Shape) thePrs;
Handle(AIS_InteractiveContext) theCtx;
theCtx->Display (thePrs, false);
theCtx->Deactivate (thePrs);
Wed, 07/07/2021 - 04:08
Thank you, Mr. Gavrilov. It has worked.