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