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

Modeling - Improve handling of polygon parameters in NURBS conversion (#410)

This commit is contained in:
Pasukhin Dmitry 2025-03-05 16:48:41 +01:00 committed by GitHub
parent 811e6c7f0d
commit 8cb6ea8b0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -508,9 +508,11 @@ Standard_Boolean BRepTools_NurbsConvertModification::NewPolygon(const TopoDS_Edg
return Standard_False;
}
// update parameters of polygon
if (thePoly->HasParameters())
if (!thePoly->HasParameters())
{
return Standard_False;
}
// update parameters of polygon
Standard_Real aTol = BRep_Tool::Tolerance(theEdge);
Standard_Real aFirst, aLast;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(theEdge, aFirst, aLast);
@ -526,7 +528,6 @@ Standard_Boolean BRepTools_NurbsConvertModification::NewPolygon(const TopoDS_Edg
gp_Pnt aPoint = aCurve->Value(aParam);
newParameter(aPoint, aNewCurve, aFirst, aLast, aTol, aParam);
}
}
return Standard_True;
}