Archived issue #0027621
Highlighting with color remains visible when shape is erased
Description
When a shape is displayed in shaded mode and highlighted with a color, the highlighting remains in the view when the shape is erased.
Also, the call vclear does not remove it.
However, the call to vremove removes it.
Also, the call vclear does not remove it.
However, the call to vremove removes it.
Steps to reproduce
pload MODELING VISUALIZATION box b 1 2 3 vclear vinit View1 vdisplay b -dispmode 1 vfit vmoveto 250 250 verase b
Bug: highlighting remains after verase.
Original test case:
Add the following code to static int VDisplay2 in ViewerTest.cxx after each call to aCtx->Display (aShape...):
aCtx->HilightWithColor(aShape, Quantity_NameOfColor::Quantity_NOC_BLUE1);
Run the following Draw commands:
pload ALL box b 1 2 3 vinit vdisplay b -dispmode 1 vfit verase b # => highlighting remains vclear # => highlighting remains vremove b # => highlighting is removed
Public activity
12 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: isk
Date: Mon Jul 4 12:20:47 2016 +0300
0027621: Highlighting with color remains visible when shape is erased.
[revision removed]
Detailed log of new commits:
Author: isk
Date: Mon Jul 4 12:20:47 2016 +0300
0027621: Highlighting with color remains visible when shape is erased.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Add test case.
Dear Kirill,
Please review the branch CR27621.
Please review the branch CR27621.
Please test the patch.
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Update AIS_InteractiveContext::ClearGlobal().
Branch [archived branch] has been updated forcibly by Participant.
[revision removed]
[revision removed]
Dear Commenter 1,
Branch CR27621 was rebased on current master of occt git-repository.
[revision removed]
Branch CR27621 was rebased on current master of occt git-repository.
[revision removed]
Dear Commenter 1,
Branch CR27621 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 0 (0 on master)
Windows: 0 (0 on master)
MacOS : 0 (0 on master)
products component :
Linux: 64 (64 on master)
Windows: 0 (0 on master)
MacOS : 1149
Regressions/Differences/Improvements:
No regressions/differences
Testing cases:
http://occt-tests/CR27621-master-OCCT/Debian70-64/bugs/vis/bug27621_1.html
http://occt-tests/CR27621-master-OCCT/Windows-64-VC10/bugs/vis/bug27621_1.html
bugs vis bug27621_1: OK
http://occt-tests/CR27621-master-OCCT/Debian70-64/bugs/vis/bug27621_2.html
http://occt-tests/CR27621-master-OCCT/Windows-64-VC10/bugs/vis/bug27621_2.html
bugs vis bug27621_2: OK
Testing on Linux:
occt component :
Total MEMORY difference: 89527371 / 89854583 [-0.36%]
Total CPU difference: 19334.329999999994 / 19414.98 [-0.42%]
products component :
Total MEMORY difference: 30043080 / 30103773 [-0.20%]
Total CPU difference: 5077.319999999981 / 5081.419999999974 [-0.08%]
Testing on Windows:
occt component :
Total MEMORY difference: 57394429 / 57398526 [-0.01%]
Total CPU difference: 18333.643122598813 / 17924.49929989893 [+2.28%]
products component :
Total MEMORY difference: 21235692 / 21200614 [+0.17%]
Total CPU difference: 4884.001307499948 / 4916.777117599947 [-0.67%]
There are no differences in images found by testdiff.
Branch CR27621 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 0 (0 on master)
Windows: 0 (0 on master)
MacOS : 0 (0 on master)
products component :
Linux: 64 (64 on master)
Windows: 0 (0 on master)
MacOS : 1149
Regressions/Differences/Improvements:
No regressions/differences
Testing cases:
http://occt-tests/CR27621-master-OCCT/Debian70-64/bugs/vis/bug27621_1.html
http://occt-tests/CR27621-master-OCCT/Windows-64-VC10/bugs/vis/bug27621_1.html
bugs vis bug27621_1: OK
http://occt-tests/CR27621-master-OCCT/Debian70-64/bugs/vis/bug27621_2.html
http://occt-tests/CR27621-master-OCCT/Windows-64-VC10/bugs/vis/bug27621_2.html
bugs vis bug27621_2: OK
Testing on Linux:
occt component :
Total MEMORY difference: 89527371 / 89854583 [-0.36%]
Total CPU difference: 19334.329999999994 / 19414.98 [-0.42%]
products component :
Total MEMORY difference: 30043080 / 30103773 [-0.20%]
Total CPU difference: 5077.319999999981 / 5081.419999999974 [-0.08%]
Testing on Windows:
occt component :
Total MEMORY difference: 57394429 / 57398526 [-0.01%]
Total CPU difference: 18333.643122598813 / 17924.49929989893 [+2.28%]
products component :
Total MEMORY difference: 21235692 / 21200614 [+0.17%]
Total CPU difference: 4884.001307499948 / 4916.777117599947 [-0.67%]
There are no differences in images found by testdiff.
Dear Commenter 1,
Branch CR27621 is TESTED.
Branch CR27621 is TESTED.
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]