no owner for shape points?

Hello, I activated mode c=7 (TopAbs_VERTEX) for an AIS_Shape which I displayed onto my viewer. It was simply a cube. I would like to get all the owners of TopAbs_VERTEX shapes

occContext->Activate(c);
occHandle(SelectMgr_IndexedMapOfOwner) m;
occContext->EntityOwners(m,curAIS,c);
cout<<"____"<<m->Extent()<<"____"<<endl;

m->Extent() is zero.

No owner for points? Why? Could you help me? Thank you Giovanni

["occHandle" is "opencascade::handle"]

Kirill Gavrilov's picture

I activated mode c=7 (TopAbs_VERTEX)

"7" selection mode of AIS_Shape corresponds to TopAbs_COMPSOLID selection, not TopAbs_VERTEX according to AIS_Shape::SelectionMode() implementation.

Giovanni Bettega's picture

Thank you very much Kirill,
actually I confused activation mode with TopAbs_ShapeEnum,
whose ints are inverted.
Regars
Giovanni