Archived issue #0024358
TKV3d - connected structures are not re-computed on device lost
Description
if (MyGraphicDriver->IsDeviceLost())
{
MyViewManager->ReComputeStructures();
MyGraphicDriver->ResetDeviceLostFlag();
}
Current implementation is unable to restore presentation for connected structures which are not displayed as independent presentations.
Steps to reproduce
pload MODELING pload VISUALIZATION box b1 0 0 0 1 2 3 box b2 3 0 0 3 2 1 vinit View1 vclear vaxo vsetdispmode 1 vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2 vfit vraytrace 1
Public activity
3 archived notes
Participants are labeled by their role within this record.
The git branch CR24358 is ready to be reviewed:
1) Structure recomputing procedure in Graphic3d_StructureManager was corrected to take into account all child (connected) structures.
2) test case /bugs/vis/bug24358 was added.
Dear san,
please review.
1) Structure recomputing procedure in Graphic3d_StructureManager was corrected to take into account all child (connected) structures.
2) test case /bugs/vis/bug24358 was added.
Dear san,
please review.
Branch CR24358 reviewed without remarks, ready for testing.
Dear Commenter 2,
Branch CR24358 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 40 (40 on master)
Windows: 0 (0 on master)
products component :
Linux: 12 (12 on master)
Windows: 2 (2 on master)
Regressions/Differences:
No regressions/differences
Testing cases:
http://occt-tests/CR24358-master-occt/Debian60-64/bugs/vis/bug24358.html
http://occt-tests/CR24358-master-occt/Windows-32-VC9/bugs/vis/bug24358.html
bugs vis(004) bug24358: OK
Testing on Linux:
Total MEMORY difference: 381357816 / 381831144
Total CPU difference: 48933.12999999994 / 42213.76
Testing on Windows:
Total MEMORY difference: 428443036 / 431123492
Total CPU difference: 34038.375 / 34130.65625
There are not differences in images found by testdiff.
Branch CR24358 (and products from GIT master) was compiled on Linux and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 40 (40 on master)
Windows: 0 (0 on master)
products component :
Linux: 12 (12 on master)
Windows: 2 (2 on master)
Regressions/Differences:
No regressions/differences
Testing cases:
http://occt-tests/CR24358-master-occt/Debian60-64/bugs/vis/bug24358.html
http://occt-tests/CR24358-master-occt/Windows-32-VC9/bugs/vis/bug24358.html
bugs vis(004) bug24358: OK
Testing on Linux:
Total MEMORY difference: 381357816 / 381831144
Total CPU difference: 48933.12999999994 / 42213.76
Testing on Windows:
Total MEMORY difference: 428443036 / 431123492
Total CPU difference: 34038.375 / 34130.65625
There are not differences in images found by testdiff.
Related records