Restoring test cases removed by last commit.
[occt.git] / tests / bugs / moddata / bug504
... / ...
CommitLineData
1puts "========="
2puts " OCC504 "
3puts "========="
4puts ""
5###############################
6## AllocMemory while intersection command
7###############################
8
9restore [locate_data_file OCC504a.draw] su1
10# checkshape su1
11
12restore [locate_data_file OCC504b.draw] su2
13# checkshape su2
14
15if [catch {intersect result su1 su2} catch_result] {
16 puts "Faulty OCC504 : A solution takes all memory and crach with AllocMemory"
17} else {
18 puts "OCC504 OK: function intersection works ok"
19}
20
21if { [regexp {curve} [whatis result_1]] && [regexp {curve} [whatis result_2]] } {
22 puts "OCC504 OK : Result shape is CORRECT !!! "
23} else {
24 puts " Faulty OCC504: Result shape is INcorrect !!! "
25}
26
27set 2dviewer 0
28