mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-10 04:50:49 +05:00
Mantis issue 0020545: error in Partition with keep non-limit shapes.
This commit is contained in:
parent
27e9b15d0a
commit
c34e09e68d
@ -20,10 +20,8 @@
|
||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||
//
|
||||
// File: GEOMAlgo_Splitter.cxx
|
||||
// Created:
|
||||
// Author: Peter KURNEV
|
||||
// <pkv@irinox>
|
||||
//
|
||||
|
||||
#include <GEOMAlgo_Splitter.ixx>
|
||||
|
||||
#include <TopAbs_ShapeEnum.hxx>
|
||||
@ -200,7 +198,7 @@ static
|
||||
const TopoDS_Shape& aS=aMx(i);
|
||||
aBB.Add(aC, aS);
|
||||
}
|
||||
//modified by NIZNHY-PKV Thu Feb 15 17:09:32 2007f
|
||||
//
|
||||
if (myLimitMode) {
|
||||
Standard_Integer iType, iLimit, iTypeX;
|
||||
TopAbs_ShapeEnum aType, aTypeX;
|
||||
@ -243,6 +241,11 @@ static
|
||||
}
|
||||
}// for (; aIt.More(); aIt.Next()) {
|
||||
//
|
||||
//modified by NIZNHY-PKV Fri Oct 30 11:07:08 2009 f
|
||||
aMx.Clear();
|
||||
TopExp::MapShapes(aC, aMx);
|
||||
//modified by NIZNHY-PKV Fri Oct 30 11:12:30 2009t
|
||||
//
|
||||
// 2. Add them to aC
|
||||
aIt.Initialize(aLSP);
|
||||
for (; aIt.More(); aIt.Next()) {
|
||||
@ -253,18 +256,27 @@ static
|
||||
for (; aItIm.More(); aItIm.Next()) {
|
||||
const TopoDS_Shape& aSIm=aItIm.Value();
|
||||
if (aM.Add(aSIm)) {
|
||||
//modified by NIZNHY-PKV Fri Oct 30 11:09:57 2009f
|
||||
if (!aMx.Contains(aSIm)) {
|
||||
aBB.Add(aC, aSIm);
|
||||
}
|
||||
//aBB.Add(aC, aSIm);
|
||||
//modified by NIZNHY-PKV Fri Oct 30 11:10:02 2009
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (aM.Add(aS)) {
|
||||
//modified by NIZNHY-PKV Fri Oct 30 11:10:46 2009f
|
||||
if (!aMx.Contains(aS)) {
|
||||
aBB.Add(aC, aS);
|
||||
}
|
||||
//aBB.Add(aC, aS);
|
||||
//modified by NIZNHY-PKV Fri Oct 30 11:11:00 2009t
|
||||
}
|
||||
}
|
||||
}
|
||||
}// if (myLimitMode) {
|
||||
//modified by NIZNHY-PKV Thu Feb 15 17:09:34 2007t
|
||||
myShape=aC;
|
||||
}//if (myLimit!=TopAbs_SHAPE) {
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user