| 1 | puts "========================" |
| 2 | puts " OCC469 " |
| 3 | puts "========================" |
| 4 | puts "" |
| 5 | ###################################################### |
| 6 | ## It's impossible to fuse the two shapes in the file attached. #2740, SAM1493 |
| 7 | ###################################################### |
| 8 | |
| 9 | restore [locate_data_file OCC469.brep] a |
| 10 | # remove small edges from the shape |
| 11 | fixsmalledges a a 0.002 |
| 12 | |
| 13 | # explode to get two arguemnts |
| 14 | explode a |
| 15 | |
| 16 | # use fuzzy value to treat misalignment of the arguments |
| 17 | bfuzzyvalue 0.002 |
| 18 | |
| 19 | # perform Boolean operation |
| 20 | bfuse result a_1 a_2 |
| 21 | |
| 22 | # restoring fuzzy value to zero |
| 23 | bfuzzyvalue 0.0 |
| 24 | |
| 25 | # check the obtained result |
| 26 | checkshape result |
| 27 | checkprops result -s 30523.3 -v 22730.1 |
| 28 | checknbshapes result -shell 1 -solid 1 |
| 29 | |
| 30 | checkview -display result -2d -path ${imagedir}/${test_image}.png |