mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
0023048: [CEA 1474] Performance regression on MakeGlueEdges
This commit is contained in:
parent
a1baa9d06d
commit
0f279d3285
13
src/GEOMAlgo/GEOMAlgo_AlgoTools.cxx
Executable file → Normal file
13
src/GEOMAlgo/GEOMAlgo_AlgoTools.cxx
Executable file → Normal file
@ -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()){
|
||||
|
Loading…
Reference in New Issue
Block a user