2 puts "OCC29311: Implementation of the Oriented Bounding Boxes (OBB) functionality"
7 set step [expr 360.0/($NbIters-1) ]
9 restore [locate_data_file OCC26443-shell_2.brep] a
11 # Check DiTo-algorithm
20 for {set i 1} { $i <= $NbIters} { incr i } {
21 bounding a -obb -shape rr$i
23 regexp {Mass +: +([-0-9.+eE]+)} [vprops rr$i 1.0e-12 -full] full Vreal
25 if { $Vreal > $VMax } {
31 if { $Vreal < $VMin } {
37 if { $i != $NbIters } { trotate a 283 162 317 2 7 9 $step }
40 checkreal {Transformed BndBoxes} $VMax $VMin 0.0 0.35
42 puts "The box with maximal volume is achieved in $MaxIteration iteration. See \"amax\" shape."
43 puts "The box with minimal volume is achieved in $MinIteration iteration. See \"amin\" shape."
45 bounding amax -obb -dump
46 bounding amin -obb -dump