| puts "==============================================" | |
| puts "OCC31992: Offset of closed B-spline edge fails" | |
| puts "==============================================" | |
| puts "" | |
| restore [locate_data_file bug31992.brep] a | |
| wire a a | |
| mkplane a a | |
| mkoffset result a 20 0.1 -approx | |
| top | |
| fit | |
| checkview -screenshot -2d -path ${imagedir}/${test_image}.png | |
| for {set i 1} {$i<=20} {incr i} { | |
| checkshape result_${i} | |
| set tolres [checkmaxtol result_${i}] | |
| if { ${tolres} > 1.001e-7} { | |
| puts "Error: bad tolerance of result" | |
| } | |
| } | |
| checknbshapes result_1 -t -vertex 175 -edge 175 -wire 1 | |
| checkprops result_1 -l 9.16454 | |
| checknbshapes result_2 -t -vertex 175 -edge 175 -wire 1 | |
| checkprops result_2 -l 9.79285 | |
| checknbshapes result_3 -t -vertex 175 -edge 175 -wire 1 | |
| checkprops result_3 -l 10.4212 | |
| checknbshapes result_4 -t -vertex 175 -edge 175 -wire 1 | |
| checkprops result_4 -l 11.0495 | |
| checknbshapes result_5 -t -vertex 175 -edge 175 -wire 1 | |
| checkprops result_5 -l 11.6778 | |
| checknbshapes result_6 -t -vertex 173 -edge 173 -wire 1 | |
| checkprops result_6 -l 12.3061 | |
| checknbshapes result_7 -t -vertex 169 -edge 169 -wire 1 | |
| checkprops result_7 -l 12.9344 | |
| checknbshapes result_8 -t -vertex 167 -edge 167 -wire 1 | |
| checkprops result_8 -l 13.5626 | |
| checknbshapes result_9 -t -vertex 165 -edge 165 -wire 1 | |
| checkprops result_9 -l 14.1907 | |
| checknbshapes result_10 -t -vertex 162 -edge 162 -wire 1 | |
| checkprops result_10 -l 14.8189 | |
| checknbshapes result_11 -t -vertex 158 -edge 158 -wire 1 | |
| checkprops result_11 -l 15.447 | |
| checknbshapes result_12 -t -vertex 155 -edge 155 -wire 1 | |
| checkprops result_12 -l 16.0748 | |
| checknbshapes result_13 -t -vertex 154 -edge 154 -wire 1 | |
| checkprops result_13 -l 16.7025 | |
| checknbshapes result_14 -t -vertex 152 -edge 152 -wire 1 | |
| checkprops result_14 -l 17.3303 | |
| checknbshapes result_15 -t -vertex 150 -edge 150 -wire 1 | |
| checkprops result_15 -l 17.958 | |
| checknbshapes result_16 -t -vertex 148 -edge 148 -wire 1 | |
| checkprops result_16 -l 18.5855 | |
| checknbshapes result_17 -t -vertex 147 -edge 147 -wire 1 | |
| checkprops result_17 -l 19.213 | |
| checknbshapes result_18 -t -vertex 147 -edge 147 -wire 1 | |
| checkprops result_18 -l 19.8405 | |
| checknbshapes result_19 -t -vertex 146 -edge 146 -wire 1 | |
| checkprops result_19 -l 20.4681 | |
| checknbshapes result_20 -t -vertex 145 -edge 145 -wire 1 | |
| checkprops result_20 -l 21.0957 |