// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <GCE2d_MakeSegment.ixx>
+
+#include <ElCLib.hxx>
#include <GCE2d_MakeLine.hxx>
-#include <StdFail_NotDone.hxx>
+#include <GCE2d_MakeSegment.hxx>
#include <Geom2d_Line.hxx>
-#include <ElCLib.hxx>
+#include <Geom2d_TrimmedCurve.hxx>
+#include <gp_Dir2d.hxx>
+#include <gp_Lin2d.hxx>
+#include <gp_Pnt2d.hxx>
+#include <StdFail_NotDone.hxx>
GCE2d_MakeSegment::GCE2d_MakeSegment(const gp_Pnt2d& P1 ,
const gp_Dir2d& V ,
const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Value() const
{
- StdFail_NotDone_Raise_if(!TheError == gce_Done,"");
+ StdFail_NotDone_Raise_if (TheError != gce_Done,
+ "GCE2d_MakeSegment::Value() - no result");
return TheSegment;
}
-
-const Handle(Geom2d_TrimmedCurve)& GCE2d_MakeSegment::Operator() const
-{
- return Value();
-}
-
-GCE2d_MakeSegment::operator Handle(Geom2d_TrimmedCurve) () const
-{
- return Value();
-}
-