Salome HOME
PAL13504 (Mesh from an imported mesh)
authoreap <eap@opencascade.com>
Mon, 19 Feb 2007 16:33:52 +0000 (16:33 +0000)
committereap <eap@opencascade.com>
Mon, 19 Feb 2007 16:33:52 +0000 (16:33 +0000)
   add HasShapeToMesh()

src/SMESH_I/SMESH_Mesh_i.cxx
src/SMESH_I/SMESH_Mesh_i.hxx

index 1d61187ab2e4d4af3027fa5b9dfd319545952a8c..28794c381e2eb969526261a049c7cabb8683e928 100644 (file)
@@ -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  :
index 507fb6615c727f90f043f70bdd92696d82650765..2361a73686ff9849697585efb5f28cd3625c0e5e 100644 (file)
@@ -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);