1puts "============"
2puts "OCC27134"
3puts "============"
4puts ""
5######################################################
6# Offset algorithm produces an invalid shape from a cone
7######################################################
8
9smallview
10
11set expected_MaxTolerance 1.02470e-007
12set tol_abs_MaxTolerance 1.e-08
13set tol_rel_MaxTolerance 1.e-08
14
15restore [locate_data_file bug27134_cone.brep] a
16explode a f
17donly a_1
18offsetshape res a_1 10
19fit
20
21checknbshapes res -vertex 5 -edge 7 -wire 2 -face 2 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 17
22
23checkshape res
24
25regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance res] full MaxTolerance
26checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
27
28checkview -screenshot -2d -path ${imagedir}/${test_image}.png
29