mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 02:30:33 +05:00
0020945: EDF 1465 SMESH: create a new mesh from a selected group or from selected elements
Add a new object type: + IDSOURCE
This commit is contained in:
parent
e9186ac5d8
commit
cce300634f
@ -25,7 +25,6 @@
|
||||
// Author : Nicolas REJNERI
|
||||
// Project : SALOME
|
||||
// Module : SMESH
|
||||
// $Header$
|
||||
//
|
||||
#ifndef SMESH_TYPE_HEADER
|
||||
#define SMESH_TYPE_HEADER
|
||||
@ -57,7 +56,8 @@ enum MeshObjectType {
|
||||
GROUP_FACE,
|
||||
GROUP_VOLUME,
|
||||
GROUP_0D,
|
||||
COMPONENT
|
||||
COMPONENT,
|
||||
IDSOURCE
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -203,6 +203,12 @@ bool SMESH_TypeFilter::isOk (const SUIT_DataOwner* theDataOwner) const
|
||||
Ok = true;
|
||||
break;
|
||||
}
|
||||
case IDSOURCE:
|
||||
{
|
||||
Ok = ( SMESH_TypeFilter(MESHorSUBMESH).isOk( theDataOwner ) ||
|
||||
SMESH_TypeFilter(GROUP) .isOk( theDataOwner ));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return Ok;
|
||||
|
Loading…
Reference in New Issue
Block a user