mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025813: regression in Hidden Line Removal
Regressions that appeared in OCCT 6.6.0 are fixed. Correction of test cases for issue #25813 Reference data update for test case bugs/mnodalg_6 /bug25908
This commit is contained in:
parent
a722bd5548
commit
f6fd8f0bcf
@ -808,7 +808,7 @@ void HLRBRep_Data::Update (const HLRAlgo_Projector& P)
|
|||||||
fd->Side(FS.IsSide(tol,myToler*10));
|
fd->Side(FS.IsSide(tol,myToler*10));
|
||||||
Standard_Boolean inverted = Standard_False;
|
Standard_Boolean inverted = Standard_False;
|
||||||
if (fd->WithOutL() && !fd->Side()) {
|
if (fd->WithOutL() && !fd->Side()) {
|
||||||
//inverted = OrientOutLine(face,*fd);
|
inverted = OrientOutLine(face,*fd);
|
||||||
OrientOthEdge(face,*fd);
|
OrientOthEdge(face,*fd);
|
||||||
}
|
}
|
||||||
if (fd->Side()) {
|
if (fd->Side()) {
|
||||||
|
19
tests/bugs/modalg_6/bug25813_1
Normal file
19
tests/bugs/modalg_6/bug25813_1
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC25813"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
######################################################
|
||||||
|
# regression in Hidden Line Removal
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
pcylinder cc 10 30
|
||||||
|
pcylinder cc2 8 50
|
||||||
|
ttranslate cc2 0 0 2
|
||||||
|
bfuse result cc cc2
|
||||||
|
vinit
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
vhlr on
|
||||||
|
vhlrtype algo result
|
||||||
|
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
17
tests/bugs/modalg_6/bug25813_2
Normal file
17
tests/bugs/modalg_6/bug25813_2
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC25813"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
######################################################
|
||||||
|
# regression in Hidden Line Removal
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug25813_hlr-bus1-draw-Fusion001.brep] result
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
vhlr on
|
||||||
|
vhlrtype algo result
|
||||||
|
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
16
tests/bugs/modalg_6/bug25813_3
Normal file
16
tests/bugs/modalg_6/bug25813_3
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC25813"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
######################################################
|
||||||
|
# regression in Hidden Line Removal
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
ptorus result 30 10
|
||||||
|
vinit
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
vhlr on
|
||||||
|
vhlrtype algo result
|
||||||
|
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
17
tests/bugs/modalg_6/bug25813_4
Normal file
17
tests/bugs/modalg_6/bug25813_4
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC25813"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
######################################################
|
||||||
|
# regression in Hidden Line Removal
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug25813_hlr-test_normandc1m1-draw-Cut001.brep] result
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
vhlr on
|
||||||
|
vhlrtype algo result
|
||||||
|
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
17
tests/bugs/modalg_6/bug25813_5
Normal file
17
tests/bugs/modalg_6/bug25813_5
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC25813"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
######################################################
|
||||||
|
# regression in Hidden Line Removal
|
||||||
|
######################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug25813_hlr-fillet2-tcl-f.brep] result
|
||||||
|
|
||||||
|
vinit
|
||||||
|
vdisplay result
|
||||||
|
vfit
|
||||||
|
vhlr on
|
||||||
|
vhlrtype algo result
|
||||||
|
|
||||||
|
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
|
@ -20,15 +20,15 @@ compound vl v1l vnl vol vil result
|
|||||||
|
|
||||||
set nbshapes_expected "
|
set nbshapes_expected "
|
||||||
Number of shapes in shape
|
Number of shapes in shape
|
||||||
VERTEX : 165
|
VERTEX : 161
|
||||||
EDGE : 83
|
EDGE : 81
|
||||||
WIRE : 0
|
WIRE : 0
|
||||||
FACE : 0
|
FACE : 0
|
||||||
SHELL : 0
|
SHELL : 0
|
||||||
SOLID : 0
|
SOLID : 0
|
||||||
COMPSOLID : 0
|
COMPSOLID : 0
|
||||||
COMPOUND : 1
|
COMPOUND : 1
|
||||||
SHAPE : 249
|
SHAPE : 243
|
||||||
"
|
"
|
||||||
|
|
||||||
checknbshapes result -ref ${nbshapes_expected} -t -m "HLRToShape"
|
checknbshapes result -ref ${nbshapes_expected} -t -m "HLRToShape"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user