#include "SALOME_LifeCycleCORBA.hxx"
#include <TopoDS_Shape.hxx>
+#include <TopoDS_Iterator.hxx>
#include <SMESH_Gen_i.hxx>
#include <boost/shared_ptr.hpp>
#include <boost/algorithm/string.hpp>
SM_ShapeTypes.Add( TopAbs_VERTEX );
SM_ShapeTypes.Add( TopAbs_EDGE );
SM_ShapeTypes.Add( TopAbs_FACE );
+ SM_ShapeTypes.Add( TopAbs_COMPOUND );
ATT_ShapeTypes.Add( TopAbs_VERTEX );
ATT_ShapeTypes.Add( TopAbs_EDGE );
MESSAGE("entry = "<<entry);
shapeName = anObject->GetName();
shapeType = SMESH_Gen_i::GetSMESHGen()->GeomObjectToShape( anObject ).ShapeType();
+ // Group management : the type of entities in the group is stored in the SMPShapeTypeMap
+ // in order to write the size map with the right syntax in StoreParamsToHypo
+ // (f(t) for edges, f(u,v) for faces ...)
+ if (shapeType == TopAbs_COMPOUND){
+ TopoDS_Shape theShape = SMESH_Gen_i::GetSMESHGen()->GeomObjectToShape( anObject );
+ TopoDS_Shape childShape;
+ TopoDS_Iterator anIt(theShape);
+ for(;anIt.More();anIt.Next()){
+ childShape = anIt.Value();
+ shapeType = childShape.ShapeType();
+ if(!childShape.IsNull()){
+ break;
+ }
+ }
+ }
mySizeMapTable->setFocus();
QString shapeEntry;
shapeEntry = QString::fromStdString(entry);