0029311: Implementation of the Oriented Bounding Boxes (OBB) functionality
[occt.git] / tests / bugs / modalg_7 / bug29311_11
CommitLineData
1a0339b4 1puts "========"
2puts "OCC29311"
3puts "========"
4puts ""
5#################################################
6# Implementation of the Oriented Bounding Boxes (OBB) functionality
7#################################################
8
9# Interfered by AABB but not interfered by OBB
10
11box b1 300 100 100
12trotate b1 0 0 0 0 1 0 -30
13box b2 200 0 50 50 50 50
14
15if { [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
21if { [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
27if { ![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
33if { ![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}