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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -19,4 +19,5 @@ checkprops result -l 4843.56
|
||||
checkshape result
|
||||
checksection result
|
||||
|
||||
donly result
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
||||
|
@@ -19,4 +19,5 @@ checkprops result -l 4207.74
|
||||
checkshape result
|
||||
checksection result
|
||||
|
||||
donly result
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
||||
|
@@ -19,4 +19,5 @@ checkprops result -l 6361.07
|
||||
checkshape result
|
||||
checksection result
|
||||
|
||||
donly result
|
||||
checkview -screenshot -2d -path ${imagedir}/${test_image}.png
|
||||
|
@@ -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"
|
||||
|
17
tests/bugs/modalg_6/bug27341
Normal file
17
tests/bugs/modalg_6/bug27341
Normal 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
|
Reference in New Issue
Block a user