From: eap Date: Mon, 19 Feb 2007 16:33:52 +0000 (+0000) Subject: PAL13504 (Mesh from an imported mesh) X-Git-Tag: V3_2_6a1~78 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4d51ac9fcb529eb89f240b1a5491a9451519dff2;p=modules%2Fsmesh.git PAL13504 (Mesh from an imported mesh) add HasShapeToMesh() --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 1d61187ab..28794c381 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -143,6 +143,24 @@ void SMESH_Mesh_i::SetShape( GEOM::GEOM_Object_ptr theShapeObject ) } } +//================================================================================ +/*! + * \brief return true if mesh has a shape to build a shape on + */ +//================================================================================ + +CORBA::Boolean SMESH_Mesh_i::HasShapeToMesh() + throw (SALOME::SALOME_Exception) +{ + Unexpect aCatch(SALOME_SalomeException); + try { + _impl->HasShapeToMesh(); + } + catch(SALOME_Exception & S_ex) { + THROW_SALOME_CORBA_EXCEPTION(S_ex.what(), SALOME::BAD_PARAM); + } +} + //======================================================================= //function : GetShapeToMesh //purpose : diff --git a/src/SMESH_I/SMESH_Mesh_i.hxx b/src/SMESH_I/SMESH_Mesh_i.hxx index 507fb6615..2361a7368 100644 --- a/src/SMESH_I/SMESH_Mesh_i.hxx +++ b/src/SMESH_I/SMESH_Mesh_i.hxx @@ -65,6 +65,9 @@ public: void SetShape( GEOM::GEOM_Object_ptr theShapeObject ) throw (SALOME::SALOME_Exception); + CORBA::Boolean HasShapeToMesh() + throw (SALOME::SALOME_Exception); + GEOM::GEOM_Object_ptr GetShapeToMesh() throw (SALOME::SALOME_Exception);