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
Forums: 

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?
Thanks,
James

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

Hi,
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).
regards
sergey

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?
James

sergey zaritchny's picture

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

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

Andrey

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.