#include "Utils_ExceptHandlers.hxx"
#include <TCollection_AsciiString.hxx>
+#include <TopoDS_Solid.hxx>
#ifdef _DEBUG_
static int MYDEBUG = 0;
return SMESH::Tag_0DElementsGroups;
}
+long SMESH_Gen_i::GetBallElementsGroupsTag()
+{
+ return SMESH::Tag_BallElementsGroups;
+}
+
//=============================================================================
/*!
* SMESH_Gen_i::CanPublishInStudy
int aType = (int)theGroup->GetType();
const char* aRootNames[] = {
"Compound Groups", "Groups of Nodes", "Groups of Edges",
- "Groups of Faces", "Groups of Volumes", "Groups of 0D Elements" };
+ "Groups of Faces", "Groups of Volumes", "Groups of 0D Elements",
+ "Groups of Balls" };
// Currently, groups with heterogenous content are not supported
- if ( aType != SMESH::ALL ) {
+ if ( aType != SMESH::ALL )
+ {
long aRootTag = GetNodeGroupsTag() + aType - 1;
// Find or create groups root
SALOMEDS::SObject_var aRootSO = publish (theStudy, CORBA::Object::_nil(),
aMeshSO, aRootTag, 0, false );
- if ( aType < 6 )
+ if ( aType < sizeof(aRootNames)/sizeof(char*) )
SetName( aRootSO, aRootNames[aType] );
// Add new group to corresponding sub-tree