1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0027468: Incorrect processing of some cases by HLR algorithm

Incorrect work of HLR algorithm caused by usage of wrong tolerances, wrong sampling of 2d curve and some other bugs are fixed.

Test cases for issue CR27341
This commit is contained in:
jgv
2016-05-05 15:47:43 +03:00
committed by bugmaster
parent b7b2f85ac1
commit c59fcd1186
12 changed files with 45 additions and 115 deletions

View File

@@ -15,8 +15,9 @@ fit
reflectlines result a 0 1 0
checkprops result -l 3730.32
checkshape result
checkprops result -l 3882.71
checkshape result
checksection result
donly result
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

View File

@@ -15,8 +15,9 @@ fit
reflectlines result a 0 1 0
checkprops result -l 4022.72
checkprops result -l 3905.95
checkshape result
checksection result
donly result
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

View File

@@ -19,4 +19,5 @@ checkprops result -l 4843.56
checkshape result
checksection result
donly result
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

View File

@@ -19,4 +19,5 @@ checkprops result -l 4207.74
checkshape result
checksection result
donly result
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

View File

@@ -19,4 +19,5 @@ checkprops result -l 6361.07
checkshape result
checksection result
donly result
checkview -screenshot -2d -path ${imagedir}/${test_image}.png

View File

@@ -20,15 +20,15 @@ compound vl v1l vnl vol vil result
set nbshapes_expected "
Number of shapes in shape
VERTEX : 161
EDGE : 81
VERTEX : 167
EDGE : 84
WIRE : 0
FACE : 0
SHELL : 0
SOLID : 0
COMPSOLID : 0
COMPOUND : 1
SHAPE : 243
SHAPE : 252
"
checknbshapes result -ref ${nbshapes_expected} -t -m "HLRToShape"

View File

@@ -0,0 +1,17 @@
puts "============"
puts "OCC27341"
puts "============"
puts ""
######################################################
# Incorrect exact HLR results
######################################################
restore [locate_data_file bug27341_hlrsave.brep] result
vinit
vdisplay result
vfit
vhlr on
vhlrtype algo result
checkview -screenshot -3d -path ${imagedir}/${test_image}.png