mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
Modeling - Improve handling of polygon parameters in NURBS conversion (#410)
This commit is contained in:
parent
811e6c7f0d
commit
8cb6ea8b0e
@ -508,9 +508,11 @@ Standard_Boolean BRepTools_NurbsConvertModification::NewPolygon(const TopoDS_Edg
|
|||||||
return Standard_False;
|
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 aTol = BRep_Tool::Tolerance(theEdge);
|
||||||
Standard_Real aFirst, aLast;
|
Standard_Real aFirst, aLast;
|
||||||
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(theEdge, 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);
|
gp_Pnt aPoint = aCurve->Value(aParam);
|
||||||
newParameter(aPoint, aNewCurve, aFirst, aLast, aTol, aParam);
|
newParameter(aPoint, aNewCurve, aFirst, aLast, aTol, aParam);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return Standard_True;
|
return Standard_True;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user