22316: EDF 2719 SMESH: Split hexas into prisms

+    GeometryType GetElementShape( in long id )
+      raises (SALOME::SALOME_Exception);
This commit is contained in:
eap 2014-01-20 10:32:14 +00:00
parent f500e5a8b6
commit ffa5254282
3 changed files with 25 additions and 0 deletions

View File

@ -810,6 +810,9 @@ module SMESH
EntityType GetElementGeomType( in long id )
raises (SALOME::SALOME_Exception);
GeometryType GetElementShape( in long id )
raises (SALOME::SALOME_Exception);
long_array GetSubMeshElementsId(in long ShapeID)
raises (SALOME::SALOME_Exception);

View File

@ -3467,6 +3467,25 @@ SMESH::EntityType SMESH_Mesh_i::GetElementGeomType( const CORBA::Long id )
return ( SMESH::EntityType ) e->GetEntityType();
}
//=============================================================================
/*!
*
*/
//=============================================================================
SMESH::GeometryType SMESH_Mesh_i::GetElementShape( const CORBA::Long id )
throw (SALOME::SALOME_Exception)
{
if ( _preMeshInfo )
_preMeshInfo->FullLoadFromFile();
const SMDS_MeshElement* e = _impl->GetMeshDS()->FindElement(id);
if ( !e )
THROW_SALOME_CORBA_EXCEPTION( "invalid element id", SALOME::BAD_PARAM );
return ( SMESH::GeometryType ) e->GetGeomType();
}
//=============================================================================
/*!
* Returns ID of elements for given submesh

View File

@ -368,6 +368,9 @@ public:
SMESH::EntityType GetElementGeomType( CORBA::Long id )
throw (SALOME::SALOME_Exception);
SMESH::GeometryType GetElementShape( CORBA::Long id )
throw (SALOME::SALOME_Exception);
/*!
* Returns ID of elements for given submesh
*/