1a0339b4 |
1 | puts "========" |
2 | puts "OCC29311" |
3 | puts "========" |
4 | puts "" |
5 | ################################################# |
6 | # Implementation of the Oriented Bounding Boxes (OBB) functionality |
7 | ################################################# |
8 | |
9 | # Interfered by AABB but not interfered by OBB |
10 | |
11 | box b1 300 100 100 |
12 | trotate b1 0 0 0 0 1 0 -30 |
13 | box b2 200 0 50 50 50 50 |
14 | |
15 | if { [regexp {NOT interfered by AABB} [ isbbinterf b1 b2 ] ] } { |
16 | puts "Error : Wrong check of AABBs interferences" |
17 | } else { |
18 | puts "OK : check of AABBs interferences" |
19 | } |
20 | |
21 | if { [regexp {NOT interfered by AABB} [ isbbinterf b2 b1 ] ] } { |
22 | puts "Error : Wrong check of AABBs interferences" |
23 | } else { |
24 | puts "OK : check of AABBs interferences" |
25 | } |
26 | |
27 | if { ![regexp {NOT interfered by OBB} [ isbbinterf b1 b2 -o ] ] } { |
28 | puts "Error : Wrong check of OBBs interferences" |
29 | } else { |
30 | puts "OK : check of OBBs interferences" |
31 | } |
32 | |
33 | if { ![regexp {NOT interfered by OBB} [ isbbinterf b2 b1 -o ] ] } { |
34 | puts "Error : Wrong check of OBBs interferences" |
35 | } else { |
36 | puts "OK : check of OBBs interferences" |
37 | } |