0030386: Modeling Algorithms - Unable to perform Cut operation
[occt.git] / tests / bugs / modalg_7 / bug30597
CommitLineData
9a1701fb 1puts "================================================================================"
2puts "OCC30597: Result of BRepOffsetAPI_MakePipeShell doesn't match the given profiles"
3puts "================================================================================"
a5278fc1 4puts ""
5
6restore [locate_data_file bug30597_compound.brep] a
7explode a
8
9explode a_1 v
10explode a_2
11explode a_3
12
13mksweep a_1
14addsweep a_2_1 a_1_1
15addsweep a_3_1 a_1_2
16
17buildsweep result
18
9a1701fb 19checkprops result -s 0.880677
20
21explode result e
22
23explode a_2_1
24mkcurve c2 a_2_1_1
25cvalue c2 pi x2 y2 z2
26vertex v2 x2 y2 z2
27distmini d2 v2 result_2
28
29if {[dval d2_val] > 1.e-7} {
30 puts "Error: result is far from first profile"
31}
32
33explode a_3_1
34mkcurve c3 a_3_1_1
35cvalue c3 pi x3 y3 z3
36vertex v3 x3 y3 z3
37distmini d3 v3 result_3
38
39if {[dval d3_val] > 1.e-7} {
40 puts "Error: result is far from second profile"
41}
42
43smallview
44donly result a_2_1 a_3_1
45fit
46
47checkview -screenshot -2d -path ${imagedir}/${test_image}.png