mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
0025491: BRepOffsetAPI_MakeOffset algorithm crashes on customer's shape and big value of offset
Test case for CR25491 Correction of test case for issue CR25491
This commit is contained in:
@@ -17,17 +17,17 @@ if [catch { mkoffset resoffset pp 1 -1. i } ] {
|
||||
} else {
|
||||
renamevar resoffset_1 result
|
||||
|
||||
set length 42
|
||||
set length 32
|
||||
|
||||
set nb_v_good 6
|
||||
set nb_e_good 7
|
||||
set nb_w_good 2
|
||||
set nb_v_good 5
|
||||
set nb_e_good 5
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 1
|
||||
set nb_shape_good 16
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 11
|
||||
|
||||
display result
|
||||
fit
|
||||
|
32
tests/bugs/modalg_5/bug25491
Executable file
32
tests/bugs/modalg_5/bug25491
Executable file
@@ -0,0 +1,32 @@
|
||||
puts "============"
|
||||
puts "OCC25491"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# BRepOffsetAPI_MakeOffset algorithm crashes on customer's shape and big value of offset
|
||||
#######################################################################
|
||||
|
||||
restore [locate_data_file bug25491_offset_lines_2.brep] a
|
||||
|
||||
if [catch { mkoffset resoffset a 1 -35 i } ] {
|
||||
puts "Error : mkoffset is wrong"
|
||||
} else {
|
||||
renamevar resoffset_1 result
|
||||
|
||||
set length 120
|
||||
|
||||
set nb_v_good 5
|
||||
set nb_e_good 5
|
||||
set nb_w_good 1
|
||||
set nb_f_good 0
|
||||
set nb_sh_good 0
|
||||
set nb_sol_good 0
|
||||
set nb_compsol_good 0
|
||||
set nb_compound_good 0
|
||||
set nb_shape_good 11
|
||||
}
|
||||
|
||||
smallview
|
||||
display a
|
||||
fit
|
||||
set only_screen_axo 1
|
Reference in New Issue
Block a user