1 puts "==============================================================="
2 puts "0030595: Oriented Bounding Box seems not optimal for some shapes"
3 puts "==============================================================="
6 # average volumes of OBBs on different sets
8 # set relative error to 1%
11 restore [locate_data_file bug30595_UC4_P_2K.brep] s1
14 bounding s1 -obb -shape bs1 -optimal
15 dchrono s1_time stop counter s1_OBB
17 checkprops bs1 -v $OBB_Vol_Exp -deps $eps
19 restore [locate_data_file bug30595_UC4_P_13K.brep] s2
22 bounding s2 -obb -shape bs2 -optimal
23 dchrono s2_time stop counter s2_OBB
25 checkprops bs2 -v $OBB_Vol_Exp -deps $eps
27 restore [locate_data_file bug30595_UC4_P_125K.brep] s3
30 bounding s3 -obb -shape bs3 -optimal
31 dchrono s3_time stop counter s3_OBB
33 checkprops bs3 -v $OBB_Vol_Exp -deps $eps
37 checkview -screenshot -2d -path ${imagedir}/${test_image}_xz.png
41 checkview -screenshot -2d -path ${imagedir}/${test_image}_xy.png