0028591: BOP Cut creates wrong result
authoremv <emv@opencascade.com>
Wed, 29 Mar 2017 05:46:31 +0000 (08:46 +0300)
committerbugmaster <bugmaster@opencascade.com>
Wed, 12 Apr 2017 14:53:03 +0000 (17:53 +0300)
commit5652dc62725e79b94685cc88ae1d118ed57b2c83
tree3f1116e4abb4a89655c87d3a200ee7c3b202b88b
parent769a2e88e0288436119981fbc589d41aa08ca508
0028591: BOP Cut creates wrong result

The Face/Face intersection procedure has been changed in Boolean Operations algorithm.
Previously, the intersection tolerance for all section curves between pair of faces has been calculated
as the maximal tolerance among all curves. Now, each curve has its own valid tolerance calculated
as the maximal deviation of the 3D curve from its 2D curves on faces or surfaces in case there are no 2D curves.

Thus, such methods of IntTools_FaceFace algorithm as TolReached3d(), TolReal() and TolReached2d() have been removed.
Now the tolerances of the curve can be obtained from the curve itself (IntTools_Curve - result of intersection):
- IntTools_Curve::Tolerance() - returns the valid tolerance for the curve;
- IntTools_Curve::TangentialTolerance() - returns the tangential tolerance, which depends on the size of the common
  between faces. Currently, this tolerance is computed for Plane/Plane cases only. For other case, the value
  of the tangential tolerance is the maximal tolerance of faces.

2D intersection tolerance (IntTools_FaceFace::TolReached2d()) has been completely removed from the algorithm as unused.
16 files changed:
dox/dev_guides/upgrade/upgrade.md
src/BOPAlgo/BOPAlgo_PaveFiller.hxx
src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx
src/BOPDS/BOPDS_Curve.hxx
src/BOPDS/BOPDS_Curve.lxx
src/BOPDS/BOPDS_Interf.hxx
src/BOPTest/BOPTest_BOPCommands.cxx
src/IntTools/FILES
src/IntTools/IntTools_Curve.cxx
src/IntTools/IntTools_Curve.hxx
src/IntTools/IntTools_Curve.lxx [deleted file]
src/IntTools/IntTools_FaceFace.cxx
src/IntTools/IntTools_FaceFace.hxx
src/IntTools/IntTools_Tools.cxx
src/IntTools/IntTools_Tools.hxx
tests/bugs/modalg_6/bug28591 [new file with mode: 0644]