X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FIntPatch%2FIntPatch_Intersection.cxx;h=f749781335956a6b86597eb940374c57861f4494;hp=cea146a9f4b4dbf68f76a8a56998b5d7e92fed54;hb=83f7dbeb629b480aa05b955202eb6617c2d88202;hpb=98974dccef283573c1b7899e144919d3f637d469 diff --git a/src/IntPatch/IntPatch_Intersection.cxx b/src/IntPatch/IntPatch_Intersection.cxx index cea146a9f4..f749781335 100644 --- a/src/IntPatch/IntPatch_Intersection.cxx +++ b/src/IntPatch/IntPatch_Intersection.cxx @@ -1072,7 +1072,9 @@ void IntPatch_Intersection::Perform(const Handle(Adaptor3d_HSurface)& theS1, bToCheck = aTor1.MajorRadius() > aTor1.MinorRadius(); if (typs1 == typs2) { const gp_Torus aTor2 = aGeomSurf->Torus(); - bToCheck = aTor2.MajorRadius() > aTor2.MinorRadius(); + bToCheck = (bToCheck && (aTor2.MajorRadius() > aTor2.MinorRadius())) || + (Abs(aTor1.MajorRadius() - aTor2.MajorRadius()) < TolTang && + Abs(aTor1.MinorRadius() - aTor2.MinorRadius()) < TolTang); } // if (aCTType == GeomAbs_Torus) {