X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Prism_3D.hxx;h=5649199379ba5686ca4cc36116ef4cbe1349031a;hb=72f9438f91c4fa249bdbf68ff2704686645d28a5;hp=82fe08f02a05c5116ce7a1777d2e39707e6c4830;hpb=9d11375af40826e967ab2c3bcb77d1f9d439c90c;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_Prism_3D.hxx b/src/StdMeshers/StdMeshers_Prism_3D.hxx index 82fe08f02..564919937 100644 --- a/src/StdMeshers/StdMeshers_Prism_3D.hxx +++ b/src/StdMeshers/StdMeshers_Prism_3D.hxx @@ -37,6 +37,7 @@ #include "SMESHDS_Mesh.hxx" #include "SMESH_subMesh.hxx" #include "SMESH_MesherHelper.hxx" +#include "SMESH_Comment.hxx" #include @@ -115,6 +116,11 @@ public: */ bool Init(SMESH_MesherHelper* helper, const TopoDS_Shape& shape3D); + /*! + * \brief Return problem description + */ + SMESH_ComputeErrorPtr GetError() const { return myError; } + /*! * \brief Return number of nodes on every vertical edge * \retval int - number of nodes including end nodes @@ -343,7 +349,14 @@ private: // to find a column for a node by edge SMESHDS Index map< int, pair< TParam2ColumnMap*, bool > > myShapeIndex2ColumnMap; - + SMESH_ComputeErrorPtr myError; + /*! + * \brief store error and comment and then return ( error == COMPERR_OK ) + */ + bool error(int error, const SMESH_Comment& comment = "") { + myError = SMESH_ComputeError::New(error,comment); + return myError->IsOK(); + } //vector< SMESH_subMesh* > mySubMeshesVec; // submesh by in-block id };