mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023375: (OCC 6.5.3 regression) BRepBuilderAPI_Sewing returns wrong result
Fixed selection of sewing pairs of edges. Mistake fix Adding test case for this fix
This commit is contained in:
@@ -1131,7 +1131,7 @@ void BRepBuilderAPI_Sewing::EvaluateDistances(TopTools_SequenceOfShape& sequence
|
||||
ProjectPointsOnCurve(ptsRef,c3d,first,last,arrDist,arrPara,arrProj,Standard_False);
|
||||
for( j = 1; j <= npt; j++ )
|
||||
{
|
||||
if(arrDist(j) < 0. || arrDist(j) > myTolerance)
|
||||
if(arrDist(j) < 0.)
|
||||
continue;
|
||||
if(dist < arrDist(j))
|
||||
dist = arrDist(j);
|
||||
@@ -4301,7 +4301,7 @@ void BRepBuilderAPI_Sewing::ProjectPointsOnCurve(const TColgp_Array1OfPnt& arrPn
|
||||
}
|
||||
}
|
||||
}
|
||||
if (distProj2 < worktol * worktol) {
|
||||
if (distProj2 < worktol * worktol || !isConsiderEnds) {
|
||||
arrDist(i1) = sqrt (distProj2);
|
||||
arrPara(i1) = paramProj;
|
||||
arrProj(i1) = ptProj;
|
||||
|
Reference in New Issue
Block a user