Porting Salome to OCCT 7.7.0

This commit is contained in:
jfa 2023-03-08 11:13:45 +00:00
parent fe14e2fc44
commit 1c82b096f9

View File

@ -20,7 +20,7 @@
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
// //
#include <Standard_Stream.hxx> #include <Basics_OCCTVersion.hxx>
#include <GEOMImpl_LineDriver.hxx> #include <GEOMImpl_LineDriver.hxx>
#include <GEOMImpl_ILine.hxx> #include <GEOMImpl_ILine.hxx>
@ -113,6 +113,10 @@ Standard_Integer GEOMImpl_LineDriver::Execute(Handle(TFunction_Logbook)& log) co
} }
BRepAlgoAPI_Section E (aShape1, aShape2, Standard_False); BRepAlgoAPI_Section E (aShape1, aShape2, Standard_False);
E.Approximation(Standard_True); E.Approximation(Standard_True);
#if OCC_VERSION_LARGE >= 0x07070000
E.ComputePCurveOn1(Standard_True);
E.ComputePCurveOn2(Standard_True);
#endif
E.Build(); E.Build();
if (!E.IsDone()) { if (!E.IsDone()) {
Standard_ConstructionError::Raise("Line can not be performed on the given faces"); Standard_ConstructionError::Raise("Line can not be performed on the given faces");