X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Curve.cpp;h=2ffc946464537d2a2ac5a92a46c5ef42dd23ff9b;hb=ea593bc59e7e9461f6c4e2afd3f24d621edb1011;hp=fb5f034ab3df1e0a5601c534f88465ed45ab3f61;hpb=c9b11eac574f71b147c8441f2b97ba7ed3ebed5a;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Curve.cpp b/src/GeomAPI/GeomAPI_Curve.cpp index fb5f034ab..2ffc94646 100644 --- a/src/GeomAPI/GeomAPI_Curve.cpp +++ b/src/GeomAPI/GeomAPI_Curve.cpp @@ -49,8 +49,6 @@ GeomAPI_Curve::GeomAPI_Curve(const std::shared_ptr& theShape) if (!anEdge.IsNull()) { Handle(Geom_Curve) aCurve = BRep_Tool::Curve(anEdge, myStart, myEnd); if (!aCurve.IsNull()) { - if (!BRep_Tool::IsClosed(anEdge)) - aCurve = new Geom_TrimmedCurve(aCurve, myStart, myEnd); setImpl(new Handle(Geom_Curve)(aCurve)); } } @@ -127,8 +125,6 @@ bool GeomAPI_Curve::isTrimmed() const return !isNull() && MY_CURVE->DynamicType() == STANDARD_TYPE(Geom_TrimmedCurve); } -// unused in the unit tests for now -// LCOV_EXCL_START GeomCurvePtr GeomAPI_Curve::basisCurve() const { Handle(Geom_Curve) aCurve = MY_CURVE; @@ -139,7 +135,6 @@ GeomCurvePtr GeomAPI_Curve::basisCurve() const aNewCurve->setImpl(new Handle(Geom_Curve)(aCurve)); return aNewCurve; } -// LCOV_EXCL_STOP const std::shared_ptr GeomAPI_Curve::project(