From: rnv Date: Fri, 10 Feb 2017 08:13:10 +0000 (+0300) Subject: Porting to DEV version of OpenCASCADE. X-Git-Tag: SHAPER_2.7.0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f8b67f9b1e19da6ddbb5ab123682daa78f17d75;p=modules%2Fgeom.git Porting to DEV version of OpenCASCADE. --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index ba76b62c3..dd3318aac 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -43,6 +43,10 @@ #include #include #include +#if OCC_VERSION_LARGE > 0x07010000 +#include +#include +#endif #include #include #include @@ -1574,18 +1578,31 @@ bool GEOMImpl_IMeasureOperations::CheckSelfIntersections // Standard_Integer aNbS, n1, n2; +#if OCC_VERSION_LARGE > 0x07010000 + BOPDS_MapIteratorOfMapOfPair aItMPK; +#else BOPDS_MapIteratorMapOfPassKey aItMPK; +#endif // // 2. Take the shapes from DS const BOPDS_DS& aDS = aCSI.DS(); aNbS=aDS.NbShapes(); // // 3. Get the pairs of interfered shapes +#if OCC_VERSION_LARGE > 0x07010000 + const BOPDS_MapOfPair& aMPK=aDS.Interferences(); +#else const BOPDS_MapOfPassKey& aMPK=aDS.Interferences(); +#endif aItMPK.Initialize(aMPK); for (; aItMPK.More(); aItMPK.Next()) { +#if OCC_VERSION_LARGE > 0x07010000 + const BOPDS_Pair& aPK=aItMPK.Value(); + aPK.Indices(n1, n2); +#else const BOPDS_PassKey& aPK=aItMPK.Value(); aPK.Ids(n1, n2); +#endif // if (n1 > aNbS || n2 > aNbS){ return false; // Error diff --git a/src/GEOMImpl/GEOMImpl_OffsetDriver.cxx b/src/GEOMImpl/GEOMImpl_OffsetDriver.cxx index d5bf48b4f..6fd616265 100644 --- a/src/GEOMImpl/GEOMImpl_OffsetDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_OffsetDriver.cxx @@ -105,7 +105,7 @@ Standard_Integer GEOMImpl_OffsetDriver::Execute(LOGBOOK& log) const if (aType == TopAbs_FACE || aType == TopAbs_SHELL) { // Create a thick solid. - BRepClass3d_SolidClassifier aClassifier = BRepClass3d_SolidClassifier(aShapeBase); + BRepClass3d_SolidClassifier aClassifier(aShapeBase); aClassifier.PerformInfinitePoint(Precision::Confusion()); if (aClassifier.State()==TopAbs_IN) { @@ -125,7 +125,7 @@ Standard_Integer GEOMImpl_OffsetDriver::Execute(LOGBOOK& log) const // Control the solid orientation. This is mostly done to fix a bug in case of extrusion // of a circle. The built solid is then badly oriented - BRepClass3d_SolidClassifier anotherClassifier = BRepClass3d_SolidClassifier(aShape); + BRepClass3d_SolidClassifier anotherClassifier(aShape); anotherClassifier.PerformInfinitePoint(Precision::Confusion()); if (anotherClassifier.State()==TopAbs_IN) {