port to occ 7.2.1
This commit is contained in:
@@ -1396,8 +1396,13 @@ bool TopoShape::analyze(bool runBopCheck, std::ostream& str) const
|
||||
for (; BOPResultsIt.More(); BOPResultsIt.Next()) {
|
||||
const BOPAlgo_CheckResult ¤t = BOPResultsIt.Value();
|
||||
|
||||
#if OCC_VERSION_HEX < 0x070000
|
||||
const BOPCol_ListOfShape &faultyShapes1 = current.GetFaultyShapes1();
|
||||
BOPCol_ListIteratorOfListOfShape faultyShapes1It(faultyShapes1);
|
||||
#else
|
||||
const TopTools_ListOfShape &faultyShapes1 = current.GetFaultyShapes1();
|
||||
TopTools_ListIteratorOfListOfShape faultyShapes1It(faultyShapes1);
|
||||
#endif
|
||||
for (;faultyShapes1It.More(); faultyShapes1It.Next()) {
|
||||
const TopoDS_Shape &faultyShape = faultyShapes1It.Value();
|
||||
str << "Error in " << shapeEnumToString[faultyShape.ShapeType()] << ": ";
|
||||
|
||||
@@ -642,8 +642,13 @@ int TaskCheckGeometryResults::goBOPSingleCheck(const TopoDS_Shape& shapeIn, Resu
|
||||
{
|
||||
const BOPAlgo_CheckResult ¤t = BOPResultsIt.Value();
|
||||
|
||||
#if OCC_VERSION_HEX < 0x070000
|
||||
const BOPCol_ListOfShape &faultyShapes1 = current.GetFaultyShapes1();
|
||||
BOPCol_ListIteratorOfListOfShape faultyShapes1It(faultyShapes1);
|
||||
#else
|
||||
const TopTools_ListOfShape &faultyShapes1 = current.GetFaultyShapes1();
|
||||
TopTools_ListIteratorOfListOfShape faultyShapes1It(faultyShapes1);
|
||||
#endif
|
||||
for (;faultyShapes1It.More(); faultyShapes1It.Next())
|
||||
{
|
||||
const TopoDS_Shape &faultyShape = faultyShapes1It.Value();
|
||||
|
||||
Reference in New Issue
Block a user