diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index 8b4d4fae58..f6008415ff 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -1482,7 +1482,7 @@ bool GeomConic::isReversed() const // ------------------------------------------------- -TYPESYSTEM_SOURCE(Part::GeomTrimmedCurve,Part::GeomCurve) +TYPESYSTEM_SOURCE(Part::GeomTrimmedCurve,Part::GeomBoundedCurve) GeomTrimmedCurve::GeomTrimmedCurve() { diff --git a/src/Mod/Part/App/Geometry.h b/src/Mod/Part/App/Geometry.h index a692874958..62e1a07abd 100644 --- a/src/Mod/Part/App/Geometry.h +++ b/src/Mod/Part/App/Geometry.h @@ -333,7 +333,7 @@ public: const Handle(Geom_Geometry)& handle() const = 0; }; -class PartExport GeomTrimmedCurve : public GeomCurve +class PartExport GeomTrimmedCurve : public GeomBoundedCurve { TYPESYSTEM_HEADER(); public: @@ -373,9 +373,11 @@ public: virtual ~GeomArcOfConic(); virtual Geometry *copy(void) const = 0; - Base::Vector3d getStartPoint(bool emulateCCWXY=false) const; - Base::Vector3d getEndPoint(bool emulateCCWXY=false) const; + Base::Vector3d getStartPoint(bool emulateCCWXY) const; + Base::Vector3d getEndPoint(bool emulateCCWXY) const; + inline virtual Base::Vector3d getStartPoint() const {return getStartPoint(false);}; + inline virtual Base::Vector3d getEndPoint() const {return getEndPoint(false);}; /*! * \deprecated use getLocation * \brief getCenter