From: jfa Date: Wed, 8 Mar 2023 11:13:45 +0000 (+0000) Subject: Porting Salome to OCCT 7.7.0 X-Git-Tag: V9_11_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fgeom.git;a=commitdiff_plain;h=1c82b096f9c6850625b249757c67f4b2f0eee325 Porting Salome to OCCT 7.7.0 --- diff --git a/src/GEOMImpl/GEOMImpl_LineDriver.cxx b/src/GEOMImpl/GEOMImpl_LineDriver.cxx index 04fd2d7e0..5cfc94c8b 100644 --- a/src/GEOMImpl/GEOMImpl_LineDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_LineDriver.cxx @@ -20,7 +20,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -#include +#include #include #include @@ -113,6 +113,10 @@ Standard_Integer GEOMImpl_LineDriver::Execute(Handle(TFunction_Logbook)& log) co } BRepAlgoAPI_Section E (aShape1, aShape2, Standard_False); E.Approximation(Standard_True); +#if OCC_VERSION_LARGE >= 0x07070000 + E.ComputePCurveOn1(Standard_True); + E.ComputePCurveOn2(Standard_True); +#endif E.Build(); if (!E.IsDone()) { Standard_ConstructionError::Raise("Line can not be performed on the given faces");