Adjusting testing cases
[occt.git] / tests / bugs / modalg / bug60782_3
CommitLineData
0e94a94e 1puts "TODO OCC12345 ALL: An exception was caught"
2puts "TODO OCC12345 ALL: Exception"
3puts "TODO OCC12345 ALL: Faulty BUC60782: mkoffset works wrongly"
4puts "TODO OCC12345 ALL: Error : The square of result shape is"
5
6
7#INTERFACE IGES
8puts "========================"
9puts "BUC60782"
10puts "CASE 3"
11puts "========================"
12puts ""
13puts "Results of Geom2d_OffsetCurve are sometimes strange (not correct). "
14puts ""
15
16restore [locate_data_file buc60782c.brep] a
17
18set che [checkshape a]
19if { [regexp {Faulty} $che ] == 1 } {
20 puts "Faulty BUC60782 (case 3): Source shape is invalid"
21} else {
22 puts "BUC60782 OK (case 3): Sourse shape is correct"
23}
24
25set che [checkshape a rr]
26if { [regexp {OK} $che ] != 1 } {
27 puts "Faulty : mistakes are found in SOURCE shape by checkshape command"
28 puts "Body of the script was not executed"
29} else {
30 puts "Checking of SOURCE shape by checkshape - OK"
31 if [catch { mkoffset result a 1 10 } catch_result] {
32 puts "Faulty BUC60782: mkoffset works wrongly"
33 renamevar a result
34 } else {
35 puts "OK BUC60782: offset is created"
36 tpcompound result
37 }
38}
39set square 0
40set 2dviewer 0