1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0030747: Modeling Algorithms - 2d Curves concatenator doesn't properly process closed contours.

Corrected Geom2dConvert_CompCurveToBSplineCurve::Add in Geom2dConvert_CompCurveToBSplineCurve.cxx;
Added the test for this problem;
Corrected "gluing" curves in ProjLib_ProjectedCurve.cxx.
This commit is contained in:
abulyche
2021-10-04 04:00:55 +03:00
committed by smoskvin
parent c1638a8db8
commit eb78d737d4
4 changed files with 99 additions and 48 deletions

View File

@@ -262,8 +262,9 @@ static void ExtendC2d (Handle(Geom2d_BSplineCurve)& aRes,
aSegment = (FirstOrLast == 0)?
new Geom2d_TrimmedCurve(aSegLine, ParOnLin, 0.) :
new Geom2d_TrimmedCurve(aSegLine, 0., ParOnLin);
aCompCurve.Add(aSegment, aTol);
Standard_Boolean anAfter = FirstOrLast != 0;
aCompCurve.Add(aSegment, aTol, anAfter);
aRes = aCompCurve.BSplineCurve();
}