0030760: Modeling Algorithms - Intersection fails in Occt 7.3.0
[occt.git] / tests / bugs / modalg_7 / bug27049
CommitLineData
340054e1 1puts "============"
2puts "OCC27049"
3puts "============"
4puts ""
5#######################################################################
6# Make non-destructive mode be defined by default in Boolean operations
7#######################################################################
8
9restore [locate_data_file bug26619_shell_ft81_h0.brep] h0
10restore [locate_data_file bug26619_the_face.brep] f0
11
12regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance1
13
14tolerance f0
15
16#turn on non-destructive mode of BOP
17#setflags h0 locked
18#setflags f0 locked
19#bnondestructive 1
20
21bop h0 f0
22bopsection result
d3578357 23checkprops result -l 150.23
24checknbshapes result -vertex 47 -edge 47 -t -m "result"
340054e1 25
26regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance2
27
28set expected_MaxTolerance ${MaxTolerance1}
29set tol_abs_MaxTolerance 0.0001
30set tol_rel_MaxTolerance 0.0001
31checkreal "MaxTolerance" ${MaxTolerance2} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
32
33checkview -display result -2d -path ${imagedir}/${test_image}.png
d3578357 34
35if {[regexp "alone_1" [checksection result]]} {
36 puts "Error: the section is not closed"
37}