0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / moddata_2 / bug604
CommitLineData
352ffd73 1puts "TODO OCC12345 ALL: Faulty OCC604: Result of intersection operation is INcorrect !!!"
2
3puts "========================"
4puts " OCC604"
5puts "========================"
6puts ""
7############################
8## Wrong intersection between two tores.
9############################
10
11restore [locate_data_file OCC604a.draw] a
12restore [locate_data_file OCC604b.draw] b
13
14if { [catch { intersect result a b } catch_result] } {
15 puts "Faulty OCC604: function INTERSECTION works with exception"
16} else {
17 set nom 0
18 set j 1
19 repeat 10 {
20 set err [lindex [whatis res_$j] 5]
21 if { $err != "curve"} {
22 break
23 } else {
24 set nom [expr $nom + 1]
25 }
26 incr j
27 }
28 if { $nom != 1 } {
29 puts "Faulty OCC604: Result of intersection operation is INcorrect !!!"
30 } else {
31 puts "OCC604 OK : Result of intersection operation is CORRECT !!! "
32 }
33}
34
35set 3dviewer 1