Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / modalg_1 / buc60782_1
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
0e94a94e 6puts "========================"
7puts "BUC60782"
8puts "CASE 1"
9puts "========================"
10puts ""
11puts "Results of Geom2d_OffsetCurve are sometimes strange (not correct). "
12puts ""
13
14restore [locate_data_file buc60782a.brep] a
15set che [checkshape a]
16if { [regexp {Faulty} $che ] == 1 } {
17 puts "Faulty BUC60782 (case 1): Source shape is invalid"
18} else {
19 puts "BUC60782 OK (case 1): Sourse shape is correct"
20}
21
22set che [checkshape a rr]
23if { [regexp {OK} $che ] != 1} {
24 puts "Faulty : mistakes are found in SOURCE shape by checkshape command"
25 puts "Body of the script was not executed"
26} else {
27 puts "Checking of SOURCE shape by checkshape - OK"
28 if [catch { mkoffset result a 1 10 } catch_result] {
29 puts "Faulty BUC60782: mkoffset works wrongly"
30 renamevar a result
31 } else {
32 puts "OK BUC60782: offset is created"
33 tpcompound result
34 }
35}
36
37set square 0
38set 2dviewer 0