1a0339b4 |
1 | puts "========" |
2 | puts "OCC29311" |
3 | puts "========" |
4 | puts "" |
5 | ################################################# |
6 | # Implementation of the Oriented Bounding Boxes (OBB) functionality |
7 | ################################################# |
8 | |
9 | restore [locate_data_file CTO900_cts19474part.rle] part |
10 | |
11 | compound result |
12 | |
13 | # construct obb for each face of the shape |
14 | foreach f [explode part f] { |
15 | if [catch {bounding -s $f -obb}] { |
16 | puts "Error with $f (exception)" |
17 | add $f result |
18 | } else { |
19 | puts "$f OK" |
20 | } |
21 | } |
22 | |
23 | checknbshapes result -face 0 |