0031542: Modeling Algorithms - Offset algorithm produces incomplete result in mode...
[occt.git] / tests / offset / shape_type_i_c / XW7
CommitLineData
4b59685a 1puts "========"
2puts "0031542: Modeling Algorithms - Offset algorithm produces incomplete result in mode Complete join type Intersection"
3puts "========"
4puts ""
5
6set X1 10; # positive x-axis
7set X2 5; # nagative x-axis
8set Y1 10; # positive y-axis
9set Y2 5; # negative y-axis
10set TOP 10; # positive z-axis
11
12set eps 1.e-5
13
14restore [locate_data_file bug31542_dom-18777.input.brep] s
15
16offsetparameter 1e-7 c i r
17offsetload s 0
18foreach f [explode s f] {
19 mksurface surf $f;
20 regexp {Axis :([-0-9.+eE]*), ([-0-9.+eE]*), ([-0-9.+eE]*)} [dump surf] full x y z
21 if {[regexp "REVERSED" [whatis $f]]} {
22 set x [dval -1*$x];
23 set y [dval -1*$y];
24 set z [dval -1*$z];
25 }
26 if {$y < -1*$eps} {
27 offsetonface $f $Y2
28 } elseif {$y > $eps} {
29 offsetonface $f $Y1
30 } elseif {$x < -1*$eps} {
31 offsetonface $f $X2
32 } elseif {$x > $eps} {
33 offsetonface $f $X1
34 } elseif {$z > $eps} {
35 offsetonface $f $TOP
36 }
37}
38offsetperform result
39
40checkprops result -s 709138 -v 2.35754e+07
41
42unifysamedom result_unif result
43checknbshapes result_unif -wire 31 -face 31 -shell 1 -solid 1
44
45checkview -display result_unif -2d -path ${imagedir}/${test_image}.png