From: vsr Date: Wed, 16 May 2012 06:56:34 +0000 (+0000) Subject: 0021550: EDF 1572 GEOM : Regression, a test script fails in a cut operation X-Git-Tag: V6_5_0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a7678525d160442f5b35a43c0e49095bac4adf0d;p=modules%2Fgeom.git 0021550: EDF 1572 GEOM : Regression, a test script fails in a cut operation --- diff --git a/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx b/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx index 8df19bd1e..93af8d28b 100644 --- a/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx +++ b/src/GEOMImpl/GEOMImpl_Block6Explorer.cxx @@ -1361,7 +1361,13 @@ TCollection_AsciiString GEOMImpl_Block6Explorer::MakeAnyFace (const TopoDS_Wire& // 12.04.2006 for PAL12149 begin Handle(Geom_Surface) aGS = BRep_Tool::Surface(TopoDS::Face(aFace)); -#if OCC_VERSION_LARGE > 0x06050200 + +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN +// the following block, when enabled, leads to extra vertices generation by partition algorithm +// in some cases, for example when fillet is made on a PipeTShape +//#if OCC_VERSION_LARGE > 0x06050200 +#if 0 +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END BRep_Builder BB; TopoDS_Iterator itw(theWire); for (; itw.More(); itw.Next()) @@ -1375,6 +1381,7 @@ TCollection_AsciiString GEOMImpl_Block6Explorer::MakeAnyFace (const TopoDS_Wire& BB.UpdateEdge(anEdge, NewPCurve, aGS, aLoc, NewTol); } #endif + BRepBuilderAPI_MakeFace MK1 (aGS, theWire); if (MK1.IsDone()) { TopoDS_Shape aFace1 = MK1.Shape(); diff --git a/src/GEOMImpl/GEOMImpl_IAdvancedOperations.cxx b/src/GEOMImpl/GEOMImpl_IAdvancedOperations.cxx index 15156df45..7c415bc08 100644 --- a/src/GEOMImpl/GEOMImpl_IAdvancedOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IAdvancedOperations.cxx @@ -1937,12 +1937,19 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFillet(double theR1, double theW1, d aFunction->SetValue(aFilletShape); // END of fillet +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN (1) +// the following block, when enabled, leads to partitioning problems +#if 0 +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END (1) // BEGIN: Limit tolerances (debug) Handle(GEOM_Object) aCorr1 = myHealingOperations->LimitTolerance(aShape, 1e-07); TopoDS_Shape aCorr1Shape = aCorr1->GetValue(); aShape->GetLastFunction()->SetValue(aCorr1Shape); aCorr1->GetLastFunction()->SetDescription(""); // END: Limit tolerances (debug) +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN (2) +#endif +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END (2) if (theHexMesh) { if (!MakePipeTShapePartition(aShape, theR1, theW1, theL1, theR2, theW2, theL2, 0, 0, theRF, false)) @@ -2137,12 +2144,19 @@ GEOMImpl_IAdvancedOperations::MakePipeTShapeFilletWithPosition(double theR1, dou aFunction->SetValue(aFilletShape); // END of fillet +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN (3) +// the following block, when enabled, leads to partitioning problems +#if 0 +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END (3) // BEGIN: Limit tolerances (debug) Handle(GEOM_Object) aCorr1 = myHealingOperations->LimitTolerance(aShape, 1e-07); TopoDS_Shape aCorr1Shape = aCorr1->GetValue(); aShape->GetLastFunction()->SetValue(aCorr1Shape); aCorr1->GetLastFunction()->SetDescription(""); // END: Limit tolerances (debug) +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - BEGIN (4) +#endif +// VSR: debug issues 0021568 and 0021550 (15/05/2012) - END (4) if (theHexMesh) { if (!MakePipeTShapePartition(aShape, theR1, theW1, theL1, theR2, theW2, theL2, 0, 0, theRF, false))