0028594: Geom2dAPI_Interpolate generated curve is not the same as proe
[occt.git] / tests / bugs / modalg_6 / bug28189_1
CommitLineData
77a11d3d 1puts "========"
2puts "OCC28189"
3puts "========"
4puts ""
5#################################################
6# Result of Boolean operation is non-manifold wire
7#################################################
8
9restore [locate_data_file bug28189_contour.brep] s
10restore [locate_data_file bug28189_solid.brep] c
11
12bcommon result s c
13
14checknbshapes result -vertex 3 -edge 2 -wire 1
15checkprops result -l 173.267
16
17# check orientation of edges in the resulting wire
18
19explode result e
20explode result_1 v
21explode result_2 v
22
23set cmp1 [compare result_1_1 result_2_1]
24set cmp2 [compare result_1_1 result_2_2]
25
26if {[regexp "same shapes" $cmp1]} {
27 if {[regexp "equal shapes" $cmp1]} {
28 puts "Error: Incorrect orientation of edges in wire"
29 }
30} elseif {[regexp "same shapes" $cmp2]} {
31 if {[regexp "equal shapes" $cmp2]} {
32 puts "Error: Incorrect orientation of edges in wire"
33 }
34} else {
35 puts "Error: No shared vertex"
36}
37
38checkview -display result -2d -path ${imagedir}/${test_image}.png