0025687: Visualization, XCAF - eliminate visual artifacts at the edges of faces
authoribs <ibs@opencascade.com>
Thu, 26 Feb 2015 09:50:32 +0000 (12:50 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 26 Feb 2015 09:51:24 +0000 (12:51 +0300)
commit5bffb8828265a829f7f938639a92076294a62cff
treec524b1a1f78a436fbe06b6b52d683cc048df8d62
parenta1096551c9cefb44d66c7c650a65d8b365ca8db3
0025687: Visualization, XCAF - eliminate visual artifacts at the edges of faces

AIS_ColoredShape::Compute() - improve logic to split input shape into Closed and Open volumes
with back-face culling enabled when possible.

Change last argument of method StdPrs_ShadedShape::Add() from boolean to enumeration StdPrs_Volume
which controls parsing of Closed/Open volumes within input shape.
Make method StdPrs_ShadedShape::ExploreSolids() public.

Extend Draw Harness command vaspects with option -setvisibility to hide subshape (using AIS_ColoredShape).
Add new test cases bugs/bis/bug25687_1 and bugs/bis/bug25687_2.

the logic of bindSubShapes method clarified

Conflicts:

src/AIS/AIS_ColoredShape.cxx

AIS_ColoredShape::dispatchColors considers the colors of displayed shapes in connection with specific priority

the color of specific shape can be exported from several ways: the color of this shape, the color of a compound containing this shape. The highest priority has the color of shape than the one of the compound. The color with highest priority will be displayed.

This patch accounts for the highest priority of the shape color.

For example: w - wire has GREEN color; e - edge has RED color; "w" contains "e"; all edges of "w" will be displayed in GREEN color except "e" edge, it will be displayed in RED color

Added sample generating model of Intel i7-4790 CPU on which the problem can be reproduced
12 files changed:
samples/tcl/cpu.tcl [new file with mode: 0644]
samples/tcl/dimensions.tcl
samples/tcl/pencil.tcl
samples/tcl/xde.tcl
src/AIS/AIS_ColoredShape.cxx
src/AIS/AIS_ColoredShape.hxx
src/StdPrs/StdPrs.cdl
src/StdPrs/StdPrs_ShadedShape.cdl
src/StdPrs/StdPrs_ShadedShape.cxx
src/ViewerTest/ViewerTest.cxx
tests/bugs/vis/bug25687_1 [new file with mode: 0644]
tests/bugs/vis/bug25687_2 [new file with mode: 0644]