MantisBT - Community
View Issue Details
0027865Community[OCCT] OCCT:Visualizationpublic2016-09-12 17:232020-08-28 14:42
solomin_s 
kgv 
normalminor 
newopen 
ALL
[OCCT] 7.0.0 
[OCCT] 7.6.0* 
0027865: Invalid face selection for MultipleConnectedInteractive with exteranal setted display mode.
If face of AIS_MultipleConnectedInteractive has been selected, the wireframe of object will be displayd. It's reproduced when diplay mode of AIS_InteractiveContext has been setted to Wireframe, but object's display mode is shading.
The root cause of such behavior is displaying AIS_ConnectedInteractive stored by AIS_MultipleConnectedInteractive.

void AIS_InteractiveContext::SetSelected (const Handle(SelectMgr_EntityOwner)& theOwner, const Standard_Boolean theToUpdateViewer)
{
  // some code

  if (!myObjects.IsBound (anObject))
    Display (anObject, Standard_False);

  // some code
}

This code seems usefull if selected object is not displayed, but is it possible?

It work "correctly" (visually) if "real" AIS_IO's display mode equal context display mode only.

See also AIS_InteractiveContext::GetDefModes, which return context display mode instead of real display mode.
pload ALL
box b 100 100 100
vdisplay b
vsetdispmode 0
vconnect cb 100 100 200 b
vsetdispmode cb 1
fit
vselmode cb 4 1
vselect 300 150 #select face of cb
No tags attached.
related to 0027866new kgv Visualization - Invalid AIS_MultipleConnectedInteractive object detecting. 
png Screenshot from 2016-09-12 17:24:17.png (8,429) 2016-09-12 17:24
https://tracker.dev.opencascade.org/
Issue History
2016-09-12 17:23solomin_sNew Issue
2016-09-12 17:23solomin_sAssigned To => kgv
2016-09-12 17:24solomin_sFile Added: Screenshot from 2016-09-12 17:24:17.png
2016-09-12 20:12kgvRelationship addedrelated to 0027866
2016-10-25 09:31kgvTarget Version7.1.0 => 7.2.0
2017-07-20 10:48kgvTarget Version7.2.0 => 7.4.0
2019-09-04 12:48abvTarget Version7.4.0 => 7.5.0
2020-08-28 14:42kgvTarget Version7.5.0 => 7.6.0*

There are no notes attached to this issue.