1a0339b4 |
1 | puts "========" |
2 | puts "OCC29311" |
3 | puts "========" |
4 | puts "" |
5 | ################################################# |
6 | # Implementation of the Oriented Bounding Boxes (OBB) functionality |
7 | ################################################# |
8 | |
9 | # Interferences of AABB |
10 | |
11 | box b1 100 60 140 20 10 80 |
12 | box b2 210 200 80 120 60 90 |
13 | |
14 | if { ![regexp {NOT interfered by AABB} [ isbbinterf b1 b2 ] ] } { |
15 | puts "Error : Wrong check of AABBs interferences" |
16 | } else { |
17 | puts "OK : check of AABBs interferences" |
18 | } |
19 | |
20 | if { ![regexp {NOT interfered by AABB} [ isbbinterf b2 b1 ] ] } { |
21 | puts "Error : Wrong check of AABBs interferences" |
22 | } else { |
23 | puts "OK : check of AABBs interferences" |
24 | } |