mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0023622: IGES import produces invalid shape with parameter read.iges.bspline.continuity=0
Adding test cases for this fix
This commit is contained in:
32
tests/bugs/iges/bug23622_1
Executable file
32
tests/bugs/iges/bug23622_1
Executable file
@@ -0,0 +1,32 @@
|
||||
puts "============"
|
||||
puts "OCC23622"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# IGES import produces invalid shape with parameter read.iges.bspline.continuity=0
|
||||
#######################################################################
|
||||
|
||||
igesbrep [locate_data_file bug23622_seatmotor2.igs] s1 397
|
||||
|
||||
renamevar s1_1 result
|
||||
|
||||
nbshapes result
|
||||
|
||||
set nb_v_good 4
|
||||
set nb_e_good 5
|
||||
set nb_w_good 1
|
||||
set nb_f_good 1
|
||||
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
|
||||
|
||||
set tol [tolerance result ]
|
||||
regexp { *Tolerance +MAX=([-0-9.+eE]+)} ${tol} full max_tol
|
||||
puts "max_tol=${max_tol}"
|
||||
if {${max_tol} > 0.02} {
|
||||
puts "Error : Bad tolerance"
|
||||
}
|
||||
|
||||
set 3dviewer 1
|
34
tests/bugs/iges/bug23622_2
Executable file
34
tests/bugs/iges/bug23622_2
Executable file
@@ -0,0 +1,34 @@
|
||||
puts "============"
|
||||
puts "OCC23622"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# IGES import produces invalid shape with parameter read.iges.bspline.continuity=0
|
||||
#######################################################################
|
||||
|
||||
param read.iges.bspline.continuity 0
|
||||
|
||||
igesbrep [locate_data_file bug23622_seatmotor2.igs] s1 397
|
||||
|
||||
renamevar s1_1 result
|
||||
|
||||
nbshapes result
|
||||
|
||||
set nb_v_good 4
|
||||
set nb_e_good 5
|
||||
set nb_w_good 1
|
||||
set nb_f_good 1
|
||||
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
|
||||
|
||||
set tol [tolerance result ]
|
||||
regexp { *Tolerance +MAX=([-0-9.+eE]+)} ${tol} full max_tol
|
||||
puts "max_tol=${max_tol}"
|
||||
if {${max_tol} > 0.02} {
|
||||
puts "Error : Bad tolerance"
|
||||
}
|
||||
|
||||
set 3dviewer 1
|
Reference in New Issue
Block a user