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