0027175: Intersection algorithm with increased tolerance works incorrect with some shapes

1. Algorithm of coincidence check between Walking and Restriction line has been improved in IntPatch_ImpPrmIntersection.
2. Creation of test case for this issue.
This commit is contained in:
nbv
2016-03-09 09:54:42 +03:00
committed by bugmaster
parent 0d1536ad4e
commit 1fbf69bb21
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -1572,7 +1572,7 @@ void IntPatch_ImpPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
// Now slin is filled as follows: lower indices correspond to Restriction line,
// after (higher indices) - only Walking-line.
const Standard_Real aTol3d = Func.Tolerance();
const Standard_Real aTol3d = Max(Func.Tolerance(), TolTang);
const Handle(Adaptor3d_HSurface)& aQSurf = (reversed) ? Surf2 : Surf1;
const Handle(Adaptor3d_HSurface)& anOtherSurf = (reversed) ? Surf1 : Surf2;