15b9dfc9 |
1 | puts "=============" |
2 | puts "OCC22609" |
3 | puts "=============" |
4 | puts "" |
5 | ########################################################### |
6 | # Cut operation between two solids produces not valid shape |
7 | ########################################################### |
8 | |
9 | restore [locate_data_file bug22609.brep] s |
10 | |
11 | explode s |
12 | |
13 | checkshape s_1 |
14 | tolerance s_1 |
15 | |
16 | checkshape s_2 |
17 | tolerance s_2 |
18 | |
19 | bop s_2 s_1 |
20 | bopcut result |
21 | |
22 | checkshape result |
23 | |
24 | checkprops result -s 1.90251e+07 |
25 | |
26 | set nbshapes_expected " |
27 | Number of shapes in result |
28 | VERTEX : 68 |
29 | EDGE : 102 |
30 | WIRE : 36 |
31 | FACE : 36 |
32 | SHELL : 1 |
33 | SOLID : 1 |
34 | COMPSOLID : 0 |
35 | COMPOUND : 1 |
36 | SHAPE : 245 |
37 | " |
38 | checknbshapes result -ref ${nbshapes_expected} -t -m "Result obtained by Boolean cut operation" |
39 | |
40 | checkview -display result -2d -path ${imagedir}/${test_image}.png |