From 4d51ac9fcb529eb89f240b1a5491a9451519dff2 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 19 Feb 2007 16:33:52 +0000 Subject: [PATCH] PAL13504 (Mesh from an imported mesh) add HasShapeToMesh() --- src/SMESH_I/SMESH_Mesh_i.cxx | 18 ++++++++++++++++++ src/SMESH_I/SMESH_Mesh_i.hxx | 3 +++ 2 files changed, 21 insertions(+) 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); -- 2.39.2