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:
@@ -330,8 +330,9 @@ static Standard_Boolean SameParameter(TopoDS_Edge& E,
|
||||
if (!HasPCurves(E))
|
||||
{
|
||||
Handle(Geom2dAdaptor_HCurve) HC2d = new Geom2dAdaptor_HCurve( Pcurv );
|
||||
Approx_CurveOnSurface AppCurve(HC2d, S, HC2d->FirstParameter(), HC2d->LastParameter(),
|
||||
Precision::Confusion(), GeomAbs_C1, 10, 10, Standard_True);
|
||||
Approx_CurveOnSurface AppCurve(HC2d, S, HC2d->FirstParameter(), HC2d->LastParameter(),
|
||||
Precision::Confusion());
|
||||
AppCurve.Perform(10, 10, GeomAbs_C1, Standard_True);
|
||||
if (AppCurve.IsDone() && AppCurve.HasResult())
|
||||
{
|
||||
C3d = AppCurve.Curve3d();
|
||||
|
Reference in New Issue
Block a user