mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-24 18:10:34 +05:00
Porting to OCCT dev version: update version 0x07010000 -> 0x07010001
This commit is contained in:
parent
bfef80c4ed
commit
eb8f9b5bb9
@ -225,7 +225,7 @@ void GEOMAlgo_RemoverWebs::BuildSolid()
|
||||
aSB.SetContext(myContext);
|
||||
aSB.SetShapes(aSFS);
|
||||
aSB.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
iErr=aSB.HasErrors();
|
||||
#else
|
||||
iErr=aSB.ErrorStatus();
|
||||
|
@ -111,7 +111,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
//
|
||||
// 1. CheckData
|
||||
CheckData();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -121,7 +121,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
//
|
||||
// 2. Prepare
|
||||
Prepare();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -132,7 +132,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
// 3. Fill Images
|
||||
// 3.1 Vertice
|
||||
FillImagesVertices();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -141,7 +141,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
}
|
||||
//
|
||||
BuildResult(TopAbs_VERTEX);
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -150,7 +150,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
}
|
||||
// 3.2 Edges
|
||||
FillImagesEdges();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -159,7 +159,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
}
|
||||
//
|
||||
BuildResult(TopAbs_EDGE);
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -169,7 +169,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
//
|
||||
// 3.3 Wires
|
||||
FillImagesContainers(TopAbs_WIRE);
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -178,7 +178,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
}
|
||||
//
|
||||
BuildResult(TopAbs_WIRE);
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -188,7 +188,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
|
||||
// 3.4 Faces
|
||||
FillImagesFaces();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -197,7 +197,7 @@ void GEOMAlgo_ShellSolidBuilder::PerformInternal(const BOPAlgo_PaveFiller& theFi
|
||||
}
|
||||
//
|
||||
BuildResult(TopAbs_FACE);
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (HasErrors()) {
|
||||
#else
|
||||
if (myErrorStatus) {
|
||||
@ -251,7 +251,7 @@ void GEOMAlgo_ShellSolid::Perform()
|
||||
myErrorStatus=10;
|
||||
return;
|
||||
}
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if(myDSFiller->HasErrors()) {
|
||||
#else
|
||||
if(myDSFiller->ErrorStatus()) {
|
||||
@ -299,7 +299,7 @@ void GEOMAlgo_ShellSolid::Perform()
|
||||
GEOMAlgo_ShellSolidBuilder aSSB;
|
||||
//
|
||||
aSSB.PerformWithFiller(*myDSFiller);
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
iErr=aSSB.HasErrors();
|
||||
#else
|
||||
iErr=aSSB.ErrorStatus();
|
||||
|
@ -85,7 +85,7 @@ void GEOMAlgo_SolidSolid::Perform()
|
||||
myErrorStatus=10;
|
||||
return;
|
||||
}
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if(myDSFiller->HasErrors()) {
|
||||
#else
|
||||
if(myDSFiller->ErrorStatus()) {
|
||||
|
@ -90,7 +90,7 @@ void GEOMAlgo_VertexSolid::Perform()
|
||||
myErrorStatus=10;
|
||||
return;
|
||||
}
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if(myDSFiller->HasErrors()) {
|
||||
#else
|
||||
if(myDSFiller->ErrorStatus()) {
|
||||
|
@ -80,7 +80,7 @@ void GEOMAlgo_WireSolid::Perform()
|
||||
myErrorStatus=10;
|
||||
return;
|
||||
}
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if(myDSFiller->HasErrors()) {
|
||||
#else
|
||||
if(myDSFiller->ErrorStatus()) {
|
||||
|
@ -150,7 +150,7 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const
|
||||
aList2.Append(aShape2);
|
||||
aCSI.SetArguments(aList1);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0)
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0)
|
||||
@ -158,7 +158,7 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const
|
||||
StdFail_NotDone::Raise("Boolean operation will not be performed, because argument shape is self-intersected");
|
||||
aCSI.SetArguments(aList2);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0)
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0)
|
||||
@ -213,7 +213,7 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const
|
||||
aList1.Append(aShape);
|
||||
aCSI.SetArguments(aList1);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
@ -241,7 +241,7 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const
|
||||
aList2.Append(aShape2);
|
||||
aCSI.SetArguments(aList2);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
@ -286,7 +286,7 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const
|
||||
aList1.Append(aShape);
|
||||
aCSI.SetArguments(aList1);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
@ -320,7 +320,7 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(LOGBOOK& log) const
|
||||
aList2.Append(aTool);
|
||||
aCSI.SetArguments(aList2);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
|
@ -1576,7 +1576,7 @@ bool GEOMImpl_IMeasureOperations::CheckSelfIntersections
|
||||
|
||||
// 1. Launch the checker
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
Standard_Boolean iErr = aCSI.HasErrors();
|
||||
#else
|
||||
Standard_Integer iErr = aCSI.ErrorStatus();
|
||||
|
@ -44,7 +44,7 @@
|
||||
#include <Standard_NullObject.hxx>
|
||||
#include <StdFail_NotDone.hxx>
|
||||
#include <BOPAlgo_CheckerSI.hxx>
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
#include <BOPAlgo_Alerts.hxx>
|
||||
#endif
|
||||
#include <BOPCol_IndexedDataMapOfShapeListOfShape.hxx>
|
||||
@ -109,7 +109,7 @@ static void CheckSelfIntersection(const TopoDS_Shape &theShape)
|
||||
aCSI.SetLevelOfCheck(BOP_SELF_INTERSECTIONS_LEVEL);
|
||||
aCSI.SetArguments(aList);
|
||||
aCSI.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aCSI.HasErrors() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
#else
|
||||
if (aCSI.ErrorStatus() || aCSI.DS().Interferences().Extent() > 0) {
|
||||
@ -417,7 +417,7 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(LOGBOOK& log) const
|
||||
aShape = PS.Shape();
|
||||
if (aShape.IsNull()) {
|
||||
// Mantis issue 22009
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (PS.HasError(STANDARD_TYPE(BOPAlgo_AlertTooFewArguments)) && PS.Tools().Extent() == 0 && PS.Arguments().Extent() == 1)
|
||||
#else
|
||||
if (PS.ErrorStatus() == 100 && PS.Tools().Extent() == 0 && PS.Arguments().Extent() == 1)
|
||||
|
@ -770,7 +770,7 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(LOGBOOK& log) const
|
||||
aMV.SetArguments(aLS);
|
||||
aMV.SetIntersect(aCI.GetIsIntersect());
|
||||
aMV.Perform();
|
||||
#if OCC_VERSION_LARGE > 0x07010000
|
||||
#if OCC_VERSION_LARGE > 0x07010001
|
||||
if (aMV.HasErrors()) return 0;
|
||||
#else
|
||||
if (aMV.ErrorStatus()) return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user