+ if ( theShape.IsNull() )
+ myGroupDS = new SMESHDS_Group (theID,
+ const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
+ theType);
+ else
+ myGroupDS = new SMESHDS_GroupOnGeom (theID,
+ const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
+ theType,
+ theShape);