| 1 | puts "============" |
| 2 | puts "OCC5805" |
| 3 | puts "============" |
| 4 | puts "" |
| 5 | ###################################################### |
| 6 | # BRepOffsetAPI_MakeThickSolid behaves unstably and produces very different results. |
| 7 | ###################################################### |
| 8 | |
| 9 | set BugNumber OCC5805 |
| 10 | |
| 11 | restore [locate_data_file OCC5805.brep] a |
| 12 | |
| 13 | decho off |
| 14 | set che_a [checkshape a] |
| 15 | decho on |
| 16 | if { [regexp {Faulty} $che_a] } { |
| 17 | puts "Faulty ${BugNumber} : checkshape is wrong for a" |
| 18 | } |
| 19 | |
| 20 | if { [catch { offsetshape result a -1 } catch_result] } { |
| 21 | puts "Faulty ${BugNumber} : offsetshape is wrong" |
| 22 | } |
| 23 | |
| 24 | checkmaxtol result -min_tol 1. |
| 25 | |
| 26 | set square 876.584 |
| 27 | |
| 28 | checknbshapes result -vertex 10 -edge 15 -wire 7 -face 7 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 41 |
| 29 | set 2dviewer 0 |