For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Is this a known problem of OCCT?

Yong Wang's picture

I created two BREPs (e.g. one sphere, one box), and part of them are overlapped. When I move the mouse over the overlapped part, sometimes the BREP in front was highlighted, which is expected, BUT sometimes the BREP in the back was highlighted.

Does anyone experience similar problem? Is it a known bug or feature?

Mark's picture

Many programs behave this way. It sounds like it is finding the edge nearest an infinite line projected out from the cursor, and highlighting the object that edge belongs to.

Yong Wang's picture

Thanks for your reply, Mark. So there is no fix for this?

sergey zaritchny's picture

The Interactive Objects visualized at Neutral Point are activated with their default selection mode. You should deactivate those which you don't want to use or all. See AIS (application interactive services).

Yong Wang's picture

Hi, sergey:

Thanks a lot for your response. Just tried:

Deactivate (const Handle(AIS_InteractiveObject)&anIobj, const Standard_Integer aMode)
Deactivate (const Handle(AIS_InteractiveObject)&anIObj)
DeactivateStandardMode (const TopAbs_ShapeEnum aStandardActivation)

I still got the same behavior, i.e. when clicked on the overlapped part, the object at the back got selected sometimes.

Any other advices?

sergey zaritchny's picture

Definitely it should work. There is no possibility to say something without source code.
Try in addition to use next method IntObject->UnsetSelectionMode();

Andrey BETENEV's picture

Hello James,

We have at least one bug for the problem of this kind (ID OCC21656); it will be fixed in OCCT 6.4


Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.