0027531: Modeling Algorithms - Make the algorithm Approx_SameParameter more clear...
[occt.git] / tests / bugs / modalg_5 / bug24033
CommitLineData
093bfc49 1puts "========"
2puts "CR24033"
3puts "========"
4puts ""
5#########################################
6## All the orientation as a result of BRepAlgoAPI_Common is set to INTERNAL
7#########################################
8
9polyline f1 0 0 0 0 1 0 1 1 0 1 0 0 0 0 0
10mkplane f1 f1
11polyline f2 0 1 0 0 2 0 1 2 0 1 1 0 0 1 0
12mkplane f2 f2
13polyline f3 0 2 0 0 3 0 1 3 0 1 2 0 0 2 0
14mkplane f3 f3
15
16polyline f4 1 0 0 1 1 0 2 1 0 2 0 0 1 0 0
17mkplane f4 f4
18polyline f5 1 1 0 1 2 0 2 2 0 2 1 0 1 1 0
19mkplane f5 f5
20polyline f6 1 2 0 1 3 0 2 3 0 2 2 0 1 2 0
21mkplane f6 f6
22
23polyline f7 2 0 0 2 1 0 3 1 0 3 0 0 2 0 0
24mkplane f7 f7
25polyline f8 2 1 0 2 2 0 3 2 0 3 1 0 2 1 0
26mkplane f8 f8
27polyline f9 2 2 0 2 3 0 3 3 0 3 2 0 2 2 0
28mkplane f9 f9
29
30sewing s f1 f2 f3 f4 f5 f6 f6 f7 f8 f9
31
32box b -1 1 -1 2 1 2
33
34bop s b
35bopcommon r
36explode r
37
38explode r_1
39set info_f [whatis r_1_1]
40if { [regexp {INTERNAL} ${info_f}] } {
41 puts "Faulty : Wrong orientation of the face"
42} else {
43 puts "Correct orientation of the face"
44}
45
46explode r_1_1 e
47set info_e [whatis r_1_1_1]
48if { [regexp {INTERNAL} ${info_e}] } {
49 puts "Faulty : Wrong orientation of the edge"
50} else {
51 puts "Correct orientation of the edge"
52}
53
54explode r_1_1 v
55set info_v [whatis r_1_1_1]
56if { [regexp {INTERNAL} ${info_v}] } {
57 puts "Faulty : Wrong orientation of the vertex"
58} else {
59 puts "Correct orientation of the vertex"
60}