0024472: Wrong section curves
[occt.git] / tests / bugs / moddata_1 / bug13
CommitLineData
0e94a94e 1
2puts "================"
3puts "OCC13"
4puts "================"
5puts ""
6##################################################
7## It is impossible to intersect two surfaces
8##################################################
9
00302ba4 10puts "TODO OCC24472 ALL: Error : Intersection was made WRONGLY"
11
0e94a94e 12restore [locate_data_file OCC13-1.draw] su1
13############### checkshape su1 # is not a topological shape
14restore [locate_data_file OCC13-2.draw] su2
15############### checkshape su2 # is not a topological shape
16
17#Try to intersect two surfaces with tolerance 0.1
18#note that distance between shapes is about 0.005942345501409
19
20catch {intersect res su1 su2 0.1 } result
21set nom 0
22 set j 1
23 repeat 10 {
24 set che [whatis res_$j]
25 set che1 [whatis res_$j]
26 set err [lindex $che [expr [llength $che] - 1]]
27 set err1 [lindex $che1 [expr [llength $che1] - 2]]
28
29 if { $err != "curve" && $err1 != "3d"} {
30 break
31 } else {
32 set nom [expr $nom + 1]
33 }
34 incr j}
35if { $nom == 0} {
36 puts "Error : Intersection was made WRONGLY"
37}
38
39