1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0030932: Modeling Algorithms - Invalid result on 2d curve on surface approximation

New method generating 3D curve is added when 2D curve is linear isoline.
This commit is contained in:
aml
2019-09-13 11:47:17 +03:00
committed by apn
parent c08fd12706
commit f04de1335c
12 changed files with 347 additions and 54 deletions

View File

@@ -1552,9 +1552,8 @@ static Standard_Integer approxcurveonsurf(Draw_Interpretor& di, Standard_Integer
Handle(Geom2dAdaptor_HCurve) A2d = new (Geom2dAdaptor_HCurve)(curve2d);
Handle(GeomAdaptor_HSurface) AS = new (GeomAdaptor_HSurface)(Surf);
Approx_CurveOnSurface App(A2d, AS, A2d->FirstParameter(), A2d->LastParameter(),
Tol, Continuity, MaxDeg, MaxSeg,
Standard_True, Standard_False);
Approx_CurveOnSurface App(A2d, AS, A2d->FirstParameter(), A2d->LastParameter(), Tol);
App.Perform(MaxSeg, MaxDeg, Continuity, Standard_True, Standard_False);
if(App.HasResult()) {
Handle(Geom_BSplineCurve) BSCurve = App.Curve3d();