0031542: Modeling Algorithms - Offset algorithm produces incomplete result in mode...
[occt.git] / tests / offset / shape_type_i_c / XM6
CommitLineData
b443d536 1restore [locate_data_file bug28163_merged_input_trim3.brep] s
2
3offsetparameter 1e-7 c i
4offsetload s 4
5foreach f [explode s f] {
6 mksurface surf $f
7 set found [regexp {Axis :([-0-9.+eE]*), ([-0-9.+eE]*), ([-0-9.+eE]*)} [dump surf] full x y z]
8 if {$found && abs(abs($z) - 1) < 1.e-7} {
9 offsetonface $f 3
10 } else {
11 if { y < -0.7 } {
12 offsetonface $f 5
13 } else {
14 if { y > 0.7 } {
15 offsetonface $f 3
16 }
17 }
18 }
19}
20offsetperform result
21
22checkprops result -v 1.23529e+006 -s 103271
23
24unifysamedom result_unif result
25checknbshapes result_unif -face 35 -shell 1
26
27checkview -display result_unif -2d -path ${imagedir}/${test_image}.png