]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0023048: [CEA 1474] Performance regression on MakeGlueEdges
authorskv <skv@opencascade.com>
Thu, 14 May 2015 07:44:37 +0000 (10:44 +0300)
committerskv <skv@opencascade.com>
Thu, 14 May 2015 07:44:37 +0000 (10:44 +0300)
src/GEOMAlgo/GEOMAlgo_AlgoTools.cxx [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 8c2a1cd..3505101
@@ -222,6 +222,19 @@ Standard_Integer GEOMAlgo_AlgoTools::BuildPCurveForEdgeOnFace
     return iRet;
   }
   //
+#if OCC_VERSION_LARGE > 0x06070100
+  // Try to copy PCurve from old edge to the new one.
+  iRet = BOPTools_AlgoTools2D::AttachExistingPCurve(aEold, aEnew, aF, aCtx);
+
+  if (iRet) {
+    // Do PCurve using projection algorithm.
+    iRet = 0;
+  } else {
+    // The PCurve is attached successfully.
+    return iRet;
+  }
+#endif
+  //
   BOPTools_AlgoTools2D::BuildPCurveForEdgeOnFace(aEnew, aF);
   aC2D=BRep_Tool::CurveOnSurface(aEnew, aF, aT1, aT2);
   if (aC2D.IsNull()){