1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0025043: there is no possibility to know what exactly subshape of source shape has detected problems by BRepAlgoAPI_Check

Since there is a possibility to run the check on self-intersection (BOPAlgo_CheckerSI algorithm) in non-destructive mode (source shape will not be modified)
there is no need to make copies of the arguments of BRepAlgoAPI_Check.

Test case added
This commit is contained in:
emv
2014-08-21 12:17:36 +04:00
committed by bugmaster
parent fc88faf18a
commit a967f10410
4 changed files with 88 additions and 4 deletions

View File

@@ -15,7 +15,6 @@
#include <BRepAlgoAPI_Check.ixx>
#include <BOPAlgo_ArgumentAnalyzer.hxx>
#include <BRepBuilderAPI_Copy.hxx>
#include <BRepCheck_Analyzer.hxx>
//=======================================================================
@@ -104,14 +103,14 @@
const Standard_Boolean bTestSI)
{
myResult.Clear();
myS1 = theS1.IsNull() ? theS1 : BRepBuilderAPI_Copy(theS1).Shape();
myS2 = theS2.IsNull() ? theS2 : BRepBuilderAPI_Copy(theS2).Shape();
myS1 = theS1;
myS2 = theS2;
//
myAnalyzer = new BOPAlgo_ArgumentAnalyzer();
//
myAnalyzer->SetShape1(myS1);
myAnalyzer->SetShape2(myS2);
myAnalyzer->OperationType()=theOp;
myAnalyzer->OperationType() = theOp;
myAnalyzer->ArgumentTypeMode() = Standard_True;
myAnalyzer->SmallEdgeMode() = bTestSE;
myAnalyzer->SelfInterMode() = bTestSI;