occt: master 1bb67d38

Author Committer Branch Timestamp Parent
emv emv master 2019-04-18 08:17:18 master 6b41f0f3
Changeset 0030595: Oriented Bounding Box seems not optimal for some shapes

Add possibility of construction of the Optimal Oriented Bounding Box from set of points (the case of shape with triangulation).

The interface of the BRepBndLib::AddOBB method is not changed, but the option <theIsOptimal> now controls also the construction of the OBB from Set of points.
The slightly modified DiTo algorithm will be used, checking all possible axes created by the extreme points.
The performance of the construction of the Optimal OBB is lower but the quality is usually much higher (can't be worse by definition).

Test cases for the issue.
add - dox/user_guides/modeling_data/images/modeling_data_obb_125K.png Diff File
add - dox/user_guides/modeling_data/images/modeling_data_opt_obb_125K.png Diff File
add - dox/user_guides/modeling_data/images/modeling_data_pca_obb_125K.png Diff File
mod - dox/user_guides/modeling_data/modeling_data.md Diff File
mod - src/Bnd/Bnd_OBB.cxx Diff File
mod - src/Bnd/Bnd_OBB.hxx Diff File
mod - src/BRepBndLib/BRepBndLib.hxx Diff File
mod - src/BRepBndLib/BRepBndLib_1.cxx Diff File
mod - src/BRepTest/BRepTest_BasicCommands.cxx Diff File
add - tests/bugs/modalg_7/bug30595_1 Diff File
add - tests/bugs/modalg_7/bug30595_2 Diff File
add - tests/bugs/modalg_7/bug30595_3 Diff File