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 300 300 300 |
12 | box b2 200 200 200 111 222 333 |
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 | } |