Change selection mode to edge

Hi,

how can I change the selection mode to edge?
Currently I am using
myAISContext->Display(aisShape, 0 /*displayMode*/, 3 /*selectionMode*/, Standard_True /*updateViewer*/,Standard_True);

However my Mouseclick still selects the whole model.

Thanks for help

Thomas

Pawel's picture

Hello Thomas,

try this:

myAISContext->OpenLocalContext();
myAISContext->ActivateStandardMode(TopAbs_EDGE);

Hope this helps
Pawel