mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024800: Point of intersection was not found for 2d offset curve.
For fix this case in method Geom2dInt_Geom2dCurveTool::NBSamples() number of samples for 2d offset and trimmed curve is computed as max value from number of samples for other curve and number of samples for basis curve. Test case for issue CR24800
This commit is contained in:
@@ -218,7 +218,8 @@ is
|
||||
NoSuchObject from Standard
|
||||
is virtual;
|
||||
|
||||
|
||||
NbSamples(me) returns Integer from Standard is virtual;
|
||||
|
||||
Bezier(me) returns BezierCurve from Geom2d
|
||||
raises
|
||||
NoSuchObject from Standard
|
||||
|
@@ -373,5 +373,12 @@ Handle(Geom2d_BSplineCurve) Adaptor2d_Curve2d::BSpline() const
|
||||
return Handle(Geom2d_BSplineCurve)();
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : NbSamples
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
Standard_Integer Adaptor2d_Curve2d::NbSamples() const
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user