3510db62 |
1 | puts "TODO OCC27014 ALL: Error : result is WRONG because number of .* entities in shape" |
2 | |
3 | puts "============" |
4 | puts "OCC26619" |
5 | puts "============" |
6 | puts "" |
7 | ####################################################################### |
8 | # Tolerances of operands are modified using bop |
9 | ####################################################################### |
10 | |
11 | restore [locate_data_file bug26619_shell_ft81_h0.brep] h0 |
12 | restore [locate_data_file bug26619_the_face.brep] f0 |
13 | |
14 | regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance1 |
15 | |
16 | tolerance f0 |
17 | |
18 | #turn on non-destructive mode of BOP |
19 | #setflags h0 locked |
20 | #setflags f0 locked |
21 | bnondestructive 1 |
22 | |
23 | bop h0 f0 |
24 | bopsection result |
3ad6d001 |
25 | checkprops result -l 142.264 |
3510db62 |
26 | |
27 | set nbshapes_expected " |
28 | Number 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 | " |
39 | checknbshapes result -ref ${nbshapes_expected} -t -m "result" |
40 | |
41 | regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance h0] full MaxTolerance2 |
42 | |
43 | set expected_MaxTolerance ${MaxTolerance1} |
44 | set tol_abs_MaxTolerance 0.0001 |
45 | set tol_rel_MaxTolerance 0.0001 |
46 | checkreal "MaxTolerance" ${MaxTolerance2} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance} |
47 | |
5747059b |
48 | checkview -display result -2d -path ${imagedir}/${test_image}.png |