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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user