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));
}
}
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;
aNewCurve->setImpl(new Handle(Geom_Curve)(aCurve));
return aNewCurve;
}
-// LCOV_EXCL_STOP
const std::shared_ptr<GeomAPI_Pnt> GeomAPI_Curve::project(