1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0027856: Regression vs 6.7.1: General Fuse operation fails to fuse the solids

Method WorkWithBoundaries::BoundaryEstimation(...) has been brought in balance with IsParallel(...) method, which checks if cylinder axes are parallel.
This commit is contained in:
nbv
2016-10-25 16:39:13 +03:00
committed by apn
parent dd6b34fda4
commit 95f8c6082d
3 changed files with 134 additions and 1 deletions

View File

@@ -2442,7 +2442,7 @@ void WorkWithBoundaries::BoundaryEstimation(const gp_Cylinder& theCy1,
//one axis can be translated by parallel shifting till intersection).
const Standard_Real aCosA = aD1.Dot(aD2);
const Standard_Real aSqSinA = 1.0 - aCosA * aCosA;
const Standard_Real aSqSinA = aD1.XYZ().CrossSquareMagnitude(aD2.XYZ());
//If sine is small then it can be compared with angle.
if (aSqSinA < Precision::Angular()*Precision::Angular())