]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Correction for the case R1Ext == R2Ext (result was not a block)
authorgdd <gdd>
Mon, 26 Apr 2010 12:25:14 +0000 (12:25 +0000)
committergdd <gdd>
Mon, 26 Apr 2010 12:25:14 +0000 (12:25 +0000)
src/GEOMImpl/GEOMImpl_IAdvancedOperations.cxx

index 3647152ff84b394fc9addbd11ee56fd129f5355a..b27b241d84cd6d7fd23428992d2e3405e53792bf 100644 (file)
@@ -940,7 +940,8 @@ bool GEOMImpl_IAdvancedOperations::MakePipeTShapePartition(Handle(GEOM_Object) t
     Handle(TColStd_HArray1OfInteger) theMaterials;
     partitionShapes->Append(theShape);
     theTools->Append(aPlnOZ);
-    theTools->Append(aPlnOXZ);
+    if (Abs(aR1Ext - aR2Ext) > Precision::Confusion() )
+        theTools->Append(aPlnOXZ);
     theTools->Append(face_t);
     if (!isNormal)
         theTools->Append(face_t2);