mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
22316: EDF 2719 SMESH: Split hexas into prisms
+ GeometryType GetElementShape( in long id ) + raises (SALOME::SALOME_Exception);
This commit is contained in:
parent
f500e5a8b6
commit
ffa5254282
@ -810,6 +810,9 @@ module SMESH
|
|||||||
EntityType GetElementGeomType( in long id )
|
EntityType GetElementGeomType( in long id )
|
||||||
raises (SALOME::SALOME_Exception);
|
raises (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
|
GeometryType GetElementShape( in long id )
|
||||||
|
raises (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
long_array GetSubMeshElementsId(in long ShapeID)
|
long_array GetSubMeshElementsId(in long ShapeID)
|
||||||
raises (SALOME::SALOME_Exception);
|
raises (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
|
@ -3467,6 +3467,25 @@ SMESH::EntityType SMESH_Mesh_i::GetElementGeomType( const CORBA::Long id )
|
|||||||
return ( SMESH::EntityType ) e->GetEntityType();
|
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
|
* Returns ID of elements for given submesh
|
||||||
|
@ -368,6 +368,9 @@ public:
|
|||||||
SMESH::EntityType GetElementGeomType( CORBA::Long id )
|
SMESH::EntityType GetElementGeomType( CORBA::Long id )
|
||||||
throw (SALOME::SALOME_Exception);
|
throw (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
|
SMESH::GeometryType GetElementShape( CORBA::Long id )
|
||||||
|
throw (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Returns ID of elements for given submesh
|
* Returns ID of elements for given submesh
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user