mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-12 12:43:07 +05:00
0020014: EDF 833 GEOM : Regression from 3.2.9 with GetInPlace
note 0013000: The script fails in V6_5_BR during MakePartition operation. fix by PKV
This commit is contained in:
parent
2c2a70a69a
commit
5b33968b4c
@ -937,7 +937,6 @@ void UpdateCandidates(const Standard_Integer theNF,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//modified by NIZNHY-PKV Thu Feb 16 12:25:16 2012f
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : IsClosed
|
//function : IsClosed
|
||||||
//purpose :
|
//purpose :
|
||||||
@ -949,14 +948,23 @@ Standard_Boolean IsClosed(const TopoDS_Edge& aE,
|
|||||||
//
|
//
|
||||||
bRet=BRep_Tool::IsClosed(aE, aF);
|
bRet=BRep_Tool::IsClosed(aE, aF);
|
||||||
if (bRet) {
|
if (bRet) {
|
||||||
TopTools_MapOfShape aM;
|
Standard_Integer iCnt;
|
||||||
|
TopoDS_Shape aE1;
|
||||||
|
//
|
||||||
|
bRet=!bRet;
|
||||||
|
iCnt=0;
|
||||||
TopExp_Explorer aExp(aF, TopAbs_EDGE);
|
TopExp_Explorer aExp(aF, TopAbs_EDGE);
|
||||||
for (; aExp.More(); aExp.Next()) {
|
for (; aExp.More(); aExp.Next()) {
|
||||||
const TopoDS_Shape& aEx=aExp.Current();
|
const TopoDS_Shape& aEx=aExp.Current();
|
||||||
//
|
//
|
||||||
if (aM.Add(aEx)) {
|
if (aEx.IsSame(aE)) {
|
||||||
bRet=aEx.IsSame(aE);
|
++iCnt;
|
||||||
if (bRet) {
|
if (iCnt==1) {
|
||||||
|
aE1=aEx;
|
||||||
|
}
|
||||||
|
else if (iCnt==2){
|
||||||
|
aE1.Reverse();
|
||||||
|
bRet=(aE1==aEx);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -964,7 +972,6 @@ Standard_Boolean IsClosed(const TopoDS_Edge& aE,
|
|||||||
}
|
}
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
//modified by NIZNHY-PKV Thu Feb 16 12:25:25 2012t
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user