]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESH/SMESH_Gen.cxx
Salome HOME
0021262: EDF 1867 SMESH: Problem with concatenate that causes failure in an important...
[modules/smesh.git] / src / SMESH / SMESH_Gen.cxx
index 9dd6d0d058f812fd065579ba679770413d80db36..cbc49c40a0dee543d650c6551a80d516ed91512d 100644 (file)
 #include "OpUtil.hxx"
 #include "Utils_ExceptHandlers.hxx"
 
-#include <gp_Pnt.hxx>
-#include <BRep_Tool.hxx>
-#include <TopTools_ListOfShape.hxx>
-#include <TopTools_ListIteratorOfListOfShape.hxx>
+#include <TopoDS_Iterator.hxx>
 
 #include "memoire.h"
 
@@ -222,6 +219,11 @@ bool SMESH_Gen::Compute(SMESH_Mesh &          aMesh,
           }
           // add smToCompute to shDim2sm map
           aShapeDim = GetShapeDim( algoShape );
+          if ( algoShape.ShapeType() == TopAbs_COMPOUND )
+          {
+            TopoDS_Iterator it( algoShape );
+            aShapeDim += GetShapeDim( it.Value() );
+          }
           shDim2sm.insert( make_pair( aShapeDim, smToCompute ));
         }
         else