Restoring test cases removed by last commit.
[occt.git] / tests / bugs / moddata / bug25
CommitLineData
a87752f3 1puts "================"
2puts "OCC25"
3puts "================"
4puts ""
5
6restore [locate_data_file OCC25-1.brep] sh1
7
8decho off
9set che [checkshape sh1]
10decho on
11
12if { [regexp {Faulty} $che ] == 1 } {
13 puts "Faulty OCC25 (case 1): Checkshape says that the wire on face has bad orientation, but it is not truth"
14} else {
15 puts "OCC25 OK (case 1): Checkshape works properly"
16}
17
18# ================================================
19restore [locate_data_file OCC25-2.brep] sh2
20
21decho off
22set che [checkshape sh2]
23decho on
24
25if { [regexp {BRepCheck_BadOrientationOfSubshape} $che] && [regexp {BRepCheck_UnorientableShape} $che]} {
26 puts " OCC25 (case 2) OK: Checkshape works properly"
27} else {
28 puts "Faulty OCC25 (case 2): Checkshape works wrongly"
29}
30
31compound sh1 sh2 result
32
33set 2dviewer 0
34
35