5 #################################################
6 # Implementation of the Oriented Bounding Boxes (OBB) functionality
7 #################################################
11 set step [expr 360.0/($NbIters-1) ]
13 restore [locate_data_file OCC26443-shell_2.brep] a
24 for {set i 1} { $i <= $NbIters} { incr i } {
25 bounding -s a -obb -shape rr$i
27 regexp {Mass +: +([-0-9.+eE]+)} [vprops rr$i 1.0e-12 -full] full Vreal
29 if { $Vreal > $VMax } {
35 if { $Vreal < $VMin } {
41 if { $i != $NbIters } { trotate a 283 162 317 2 7 9 $step }
44 checkreal {Transformed BndBoxes} $VMax $VMin 0.0 0.001
46 puts "The box with maximal volume is achieved in $MaxIteration iteration. See \"amax\" shape."
47 puts "The box with minimal volume is achieved in $MinIteration iteration. See \"amin\" shape."
49 bounding -s amax -obb -dump
50 bounding -s amin -obb -dump