#include <GeomAbs_CurveType.hxx>
#include <GeomAbs_Shape.hxx>
#include <gp_Pnt2d.hxx>
+#include <Precision.hxx>
#include <Standard_NullObject.hxx>
#include <TColStd_Array1OfReal.hxx>
load(theCurve, theCurve->FirstParameter(), theCurve->LastParameter());
}
- //! Standard_ConstructionError is raised if theUFirst>theULast
+ //! Standard_ConstructionError is raised if theUFirst > theULast + Precision::PConfusion()
void Load(const Handle(Geom2d_Curve)& theCurve,
const Standard_Real theUFirst,
const Standard_Real theULast)
{
throw Standard_NullObject();
}
- if (theUFirst > theULast)
+ if (theUFirst > theULast + Precision::Confusion())
{
throw Standard_ConstructionError();
}
#include <Geom_Curve.hxx>
#include <GeomAbs_Shape.hxx>
#include <GeomEvaluator_Curve.hxx>
+#include <Precision.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_ConstructionError.hxx>
GeomAdaptor_Curve(const Handle(Geom_Curve)& theCurve) { Load(theCurve); }
- //! Standard_ConstructionError is raised if theUFirst>theULast
+ //! Standard_ConstructionError is raised if theUFirst > theULast + Precision::PConfusion()
GeomAdaptor_Curve(const Handle(Geom_Curve)& theCurve,
const Standard_Real theUFirst,
const Standard_Real theULast)
load(theCurve, theCurve->FirstParameter(), theCurve->LastParameter());
}
- //! Standard_ConstructionError is raised if theUFirst>theULast
+ //! Standard_ConstructionError is raised if theUFirst > theULast + Precision::PConfusion()
void Load(const Handle(Geom_Curve)& theCurve,
const Standard_Real theUFirst,
const Standard_Real theULast)
{
throw Standard_NullObject();
}
- if (theUFirst > theULast)
+ if (theUFirst > theULast + Precision::Confusion())
{
throw Standard_ConstructionError();
}