1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-09 18:50:54 +03:00
occt/tests/bugs/modalg_5/bug23375_1
gka 5a29f57e9b 0024036: Regression: sewing is not correct
Adding test case for issue CR24036
Loading Draw plugin containing command "freebounds"
Loading plugin XDEDRDRW was changed on loading plugin XSDRAW
2013-09-12 14:04:59 +04:00

37 lines
796 B
Plaintext
Executable File

puts "========================"
puts "OCC23375"
puts "========================"
puts ""
#######################################################################
# (OCC 6.5.3 regression) BRepBuilderAPI_Sewing returns wrong result
#######################################################################
pload XSDRAW
restore [locate_data_file bug23375_Volute1.brep] v
explode v
sewing result 0.01 v_1 v_2
# 1
checkshape result
# 2
set tolmaxres [tolmax result]
regexp {max tol = ([-0-9.+eE]+)} $tolmaxres full MaxTolerance
set CMP_TOL 1.e-4
if { ${MaxTolerance} > ${CMP_TOL} } {
puts "Error: invalid tolerance"
}
# 3
freebounds $result -0.01
set s [explode result_c e]
puts $s
set index [ llength $s ]
if { $index != 8 } {
puts "Error : Number of free edges is $index"
}
set 2dviewer 1