MantisBT - Open CASCADE
View Issue Details
0024577Open CASCADE[OCCT] OCCT:Visualizationpublic2014-01-28 11:552017-09-29 16:28
apl 
bugmaster 
normalminor 
closedfixed 
[OCCT] 6.7.0 
[OCCT] 7.2.0[OCCT] 7.2.0 
0024577: Duplicating local selection of AIS_Trihedron
The AIS_Trihedron provides local selection modes in form of sensitives: center point, axes, plane triangles. For each of the mode corresponding sensitive entities created by AIS_Trihedron. The highlighting is provided by individual IOs owned by the trihedron's presentation. When displayed, these IOs become activated in selector by AIS_InteractiveContext, providing their own sensitives. Thus, there is a duplication of sensitives between the ones created by AIS_Thrihedron and the presentation used for highlighting.

The effect is seen for plane selection mode (3), when the AIS_Trihedron provides sensitive triangles with interior selection, while the highlighting entities also provides sensitive triangles, but with boundaries selection.

The quickest solution is to avoid loading the highlight presentation into selector. Better solution for such cases is to inherit and write proper SelectMgr_EntityOwner with custom highlighting.

//=======================================================================
//function : ComputeSelection
//purpose :
//=======================================================================
void AIS_Trihedron::ComputeSelection(...)
{
  case 3:
  {
    ...
    if (!anAISContext.IsNull())
      for (anIdx = 4; anIdx < 7; anIdx++)
      {
        anAISContext->Display (myShapes[anIdx], 1, -1, Standard_False);
        anAISContext->ClearPrs (myShapes[anIdx], 1, Standard_False);
      }
  }
}
N/A
No tags attached.
related to 0027958closed bugmaster Open CASCADE Visualization, AIS_Trihedron - add shaded presentation option 
Issue History
2014-01-28 11:55aplNew Issue
2014-01-28 11:55aplAssigned To => apl
2014-01-28 11:56aplStatusnew => assigned
2014-01-28 11:57aplRelationship addedrelated to 0024564
2014-04-04 18:16abvTarget Version6.7.1 => 6.8.0
2014-10-17 10:38kgvTarget Version6.8.0 => 7.1.0
2016-10-25 09:49kgvTarget Version7.1.0 => 7.2.0
2017-07-10 13:58kgvRelationship addedrelated to 0027958
2017-07-10 13:58kgvNote Added: 0068158
2017-07-10 13:58kgvStatusassigned => feedback
2017-07-13 10:17aplAssigned Toapl => kgv
2017-07-13 10:17aplStatusfeedback => resolved
2017-07-13 10:17aplSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17084#r17084
2017-07-13 10:17aplNote Added: 0068242
2017-07-13 10:17aplSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17085#r17085
2017-07-13 10:22kgvNote Added: 0068243
2017-07-13 10:22kgvAssigned Tokgv => bugmaster
2017-07-13 10:22kgvStatusresolved => reviewed
2017-07-13 10:22kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17086#r17086
2017-07-13 11:05bugmasterStatusreviewed => verified
2017-07-13 11:05bugmasterResolutionopen => fixed
2017-09-29 16:18aivFixed in Version => 7.2.0
2017-09-29 16:28aivStatusverified => closed

Notes
(0068158)
kgv   
2017-07-10 13:58   
I suppose that the issue should be fixed within patch for 0027958 - could you please confirm?
(0068242)
apl   
2017-07-13 10:17   
Yes, the AIS_Trihedron does not create anymore distinct interactive objects for highlighting and so the issue is solved.
(0068243)
kgv   
2017-07-13 10:22   
Dear bugmaster,

please switch bug into VERIFIED state.
Test case is not needed.