PAL13504 (Mesh from an imported mesh)

add HasShapeToMesh()
This commit is contained in:
eap 2007-02-19 16:33:52 +00:00
parent 331304764c
commit 4d51ac9fcb
2 changed files with 21 additions and 0 deletions

View 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 :

View 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);