| 1 | puts "========" |
| 2 | puts "OCC27936" |
| 3 | puts "========" |
| 4 | puts "" |
| 5 | ############################################################################### |
| 6 | # [regression] BRepAlgoAPI_Common returns empty result for a solid and a face |
| 7 | ############################################################################### |
| 8 | |
| 9 | restore [locate_data_file bug27936_rsi.brep] s |
| 10 | |
| 11 | explode s |
| 12 | brunparallel 1 |
| 13 | bop s_1 s_2 |
| 14 | bopcommon result |
| 15 | |
| 16 | set bug_info [string trim [explode result]] |
| 17 | if {$bug_info == ""} { |
| 18 | puts "ERROR: OCC27936 is reproduced. Result of bopcommon is empty." |
| 19 | } |
| 20 | |
| 21 | checkshape result |
| 22 | checknbshapes result -vertex 4 -edge 4 -wire 1 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 11 |