0031047: Modeling Algorithms - BRepExtrema_DistShapeShape gives wrong result
[occt.git] / tests / bugs / modalg_6 / bug28189_6
CommitLineData
77a11d3d 1puts "========"
2puts "OCC28189"
3puts "========"
4puts ""
5#################################################
6# Result of Boolean operation is non-manifold wire
7#################################################
8
9vertex v1 0 0 0
10vertex v2 1 0 0
11vertex v3 1 1 0
12vertex v4 0 1 0
13edge e1 v1 v2
14edge e2 v3 v2
15edge e3 v3 v4
16edge e4 v1 v4
17
18compound e1 e2 e3 e4 edges
19edgestowire result edges
20
21if {![regexp "WIRE" [whatis result]]} {
22 puts "Error: Wire is not created"
23}
24
25explode result
26
27if {![regexp "FORWARD" [whatis result_1]]} {
28 puts "Error: Incorrect orientation of edges in wire"
29}
30
31if {![regexp "REVERSED" [whatis result_2]]} {
32 puts "Error: Incorrect orientation of edges in wire"
33}
34
35if {![regexp "FORWARD" [whatis result_3]]} {
36 puts "Error: Incorrect orientation of edges in wire"
37}
38
39if {![regexp "REVERSED" [whatis result_4]]} {
40 puts "Error: Incorrect orientation of edges in wire"
41}