DiscussionsIssue archiveOCCT:Visualization

Archived issue #0026940

Visualization, TKOpenGl - capping plane should be applied to connected structures

Open CASCADEOCCT:Visualizationclosed4 public notes

Search issues

Description

Capping plane is ignored within rendering of connected structures within OpenGl_Structure::RenderGeometry().

Steps to reproduce

vinit View1
vclear
vaxo
vsetdispmode 1
box b 1 1 1
vdisplay b
vfit

vclipplane create pln
vclipplane set pln view Driver1/Viewer1/View1
vclipplane change pln equation 0 1 0 -0.5
vclipplane change pln capping on
# capping is OK here

vclear
vconnectto bb 0 0 0 b
# no capping - only clipping

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Tue Dec 1 13:53:51 2015 +0300

    0026940: Visualization, TKOpenGl - capping plane should be applied to connected structures
    
    OpenGl_Structure::Render(), OpenGl_CappingAlgo::RenderCapping() - render
    groups of instanced and this structure in the same manner
    using ::renderGeometry() and ::renderClosedGeometry() instead of ::DrawGroups().
    Skip capping algo for structures without groups of closed primitives.
02Author
Please test the patch.
03Commenter 3
Dear Commenter 1,

Branch CR26940 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MacOS: 134 (134 on master)
products component:
   Linux: 39 (39 on master)
   Windows: 0 (0 on master)

Regressions/Differences:
Not detected

Testing cases:
bugs vis bug26940 - OK
http://occt-tests/CR26940-master-occt-64/Debian70-64/bugs/vis/bug26940.html
http://occt-tests/CR26940-master-occt-64/Windows-64-VC10/bugs/vis/bug26940.html

Testing on Linux:
Total MEMORY difference: 92434911 / 91612209 [+0.90%]
Total CPU difference: 19820.109999999822 / 20030.639999999705 [-1.05%]

Testing on Windows:
Total MEMORY difference: 57770682 / 57833189 [-0.11%]
Total CPU difference: 18370.20975699887 / 20089.76197969905 [-8.56%]
04Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]

Related records