0027532: Errors on reading stp-file
[occt.git] / tests / bugs / modalg_6 / bug26619
CommitLineData
3510db62 1puts "TODO OCC27014 ALL: Error : result is WRONG because number of .* entities in shape"
2
3puts "============"
4puts "OCC26619"
5puts "============"
6puts ""
7#######################################################################
8# Tolerances of operands are modified using bop
9#######################################################################
10
11restore [locate_data_file bug26619_shell_ft81_h0.brep] h0
12restore [locate_data_file bug26619_the_face.brep] f0
13
14regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance1
15
16tolerance f0
17
18#turn on non-destructive mode of BOP
19#setflags h0 locked
20#setflags f0 locked
21bnondestructive 1
22
23bop h0 f0
24bopsection result
3ad6d001 25checkprops result -l 142.264
3510db62 26
27set nbshapes_expected "
28Number of shapes in shape
29 VERTEX : 46
30 EDGE : 46
31 WIRE : 0
32 FACE : 0
33 SHELL : 0
34 SOLID : 0
35 COMPSOLID : 0
36 COMPOUND : 1
37 SHAPE : 93
38"
39checknbshapes result -ref ${nbshapes_expected} -t -m "result"
40
41regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance2
42
43set expected_MaxTolerance ${MaxTolerance1}
44set tol_abs_MaxTolerance 0.0001
45set tol_rel_MaxTolerance 0.0001
46checkreal "MaxTolerance" ${MaxTolerance2} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
47
5747059b 48checkview -display result -2d -path ${imagedir}/${test_image}.png